#include <toolhelp.h>
typedef struct tagGLOBALINFO { /* gi */
DWORD dwSize;
WORD wcItems;
WORD wcItemsFree;
WORD wcItemsLRU;
} GLOBALINFO;
The GLOBALINFO structure contains information about the global heap.
dwSize
Specifies the size of the GLOBALINFO structure, in bytes.
wcItems
Specifies the total number of items on the global heap.
wcItemsFree
Specifies the number of free items on the global heap.
wcItemsLRU
Specifies the number of “least recently used” (LRU) items on the global heap.