#include <toolhelp.h>
typedef struct tagLOCALENTRY { /* le */
DWORD dwSize;
HLOCAL hHandle;
WORD wAddress;
WORD wSize;
WORD wFlags;
WORD wcLock;
WORD wType;
WORD hHeap;
WORD wHeapType;
WORD wNext;
} LOCALENTRY;
The LOCALENTRY structure contains information about a memory object on the local heap.
dwSize
Specifies the size of the LOCALENTRY structure, in bytes.
hHandle
Identifies the local-memory object.
wAddress
Specifies the address of the local-memory object.
wSize
Specifies the size of the local-memory object, in bytes.
wFlags
Specifies whether the memory object is fixed, free, or movable. This member can be one of the following values:
Value | Meaning |
LF_FIXED | The object resides in a fixed memory location. |
LF_FREE | The object is part of the free memory pool. |
LF_MOVEABLE | The object can be moved in order to compact memory. |
wcLock
Specifies the lock count. If this value is zero, the memory object is not locked.
wType
Specifies the content of the memory object. This member can be one of the following values:
Value | Meaning |
LT_FREE | The object belongs to the free memory pool. | |
LT_GDI_BITMAP | The object contains a bitmap header. | |
LT_GDI_BRUSH | The object contains a brush. | |
LT_GDI_DC | The object contains a device context. | |
LT_GDI_DISABLED_DC | The object is reserved for internal use by Windows. | |
LT_GDI_FONT | The object contains a font header. | |
LT_GDI_MAX | The object is reserved for internal use by Windows. | |
LT_GDI_METADC | The object contains a metafile device context. | |
LT_GDI_METAFILE | The object contains a metafile header. | |
LT_GDI_PALETTE | The object contains a palette. | |
LT_GDI_PEN | The object contains a pen. | |
LT_GDI_RGN | The object contains a region. | |
LT_NORMAL | The object is reserved for internal use by Windows. | |
LT_USER_ATOMS | The object contains an atom structure. | |
LT_USER_BWL | The object is reserved for internal use by Windows. | |
LT_USER_CBOX | The object contains a combo-box structure. | |
LT_USER_CHECKPOINT | The object is reserved for internal use by Windows. | |
LT_USER_CLASS | The object contains a class structure. | |
LT_USER_CLIP | The object is reserved for internal use by Windows. | |
LT_USER_DCE | The object is reserved for internal use by Windows. | |
LT_USER_ED | The object contains an edit-control structure. | |
LT_USER_HANDLETABLE | ||
The object is reserved for internal use by Windows. | ||
LT_USER_HOOKLIST | The object is reserved for internal use by Windows. | |
LT_USER_HOTKEYLIST | The object is reserved for internal use by Windows. | |
LT_USER_LBIV | The object contains a list-box structure. | |
LT_USER_LOCKINPUTSTATE | ||
The object is reserved for internal use by Windows. | ||
LT_USER_MENU | The object contains a menu structure. | |
LT_USER_MISC | The object is reserved for internal use by Windows. | |
LT_USER_MWP | The object is reserved for internal use by Windows. | |
LT_USER_OWNERDRAW | The object is reserved for internal use by Windows. | |
LT_USER_PALETTE | The object is reserved for internal use by Windows. | |
LT_USER_POPUPMENU | The object is reserved for internal use by Windows. | |
LT_USER_PROP | The object contains a window-property structure. | |
LT_USER_SPB | The object is reserved for internal use by Windows. | |
LT_USER_STRING | The object is reserved for internal use by Windows. | |
LT_USER_USERSEEUSERDOALLOC | ||
The object is reserved for internal use by Windows. | ||
LT_USER_WND | The object contains a window structure. |
hHeap
Identifies the local-memory heap.
wHeapType
Specifies the type of local heap. This type can be one of the following values:
Value | Meaning |
NORMAL_HEAP | The heap is the default heap. |
USER_HEAP | The heap is used by the USER module. |
GDI_HEAP | The heap is used by the GDI module. |
wNext
Specifies the next entry in the local heap. This member is reserved for internal use by Windows.
The wType values are for informational purposes only. Microsoft reserves the right to change or delete these tags at any time. Applications should never directly change items on the system heaps, as this information will change in future versions. The wType values for the USER module are included only in the debugging versions of USER.EXE.