#include <toolhelp.h>
typedef struct tagSYSHEAPINFO { /* shi */
DWORD dwSize;
WORD wUserFreePercent;
WORD wGDIFreePercent;
HGLOBAL hUserSegment;
HGLOBAL hGDISegment;
} SYSHEAPINFO;
The SYSHEAPINFO structure contains information about the USER and GDI modules.
dwSize
Specifies the size of the SYSHEAPINFO structure, in bytes.
wUserFreePercent
Specifies the percentage of the USER local heap that is free.
wGDIFreePercent
Specifies the percentage of the GDI local heap that is free.
hUserSegment
Identifies the DGROUP segment of the USER local heap.
hGDISegment
Identifies the DGROUP segment of the GDI local heap.