"Dimitrie O. Paun" dpaun@rogers.com wrote:
+struct mem_area +{
- struct list entry; /* Entry in global mem area list */
- const void *base; /* Base address */
- UINT size; /* Size in bytes */
- void *data; /* Data associated with this area */
+};
One more nitpick: it's better to change the size type to SIZE_T from UINT to allow 64-bit size memory allocations on (future) Win64.