GLOBALENTRY

3.1

#include <toolhelp.h>

typedef struct tagGLOBALENTRY {  /* ge */
    DWORD   dwSize;
    DWORD   dwAddress;
    DWORD   dwBlockSize;
    HGLOBAL hBlock;
    WORD    wcLock;
    WORD    wcPageLock;
    WORD    wFlags;
    BOOL    wHeapPresent;
    HGLOBAL hOwner;
    WORD    wType;
    WORD    wData;
    DWORD   dwNext;
    DWORD   dwNextAlt;
} GLOBALENTRY;

The GLOBALENTRY structure contains information about a memory object on the global heap.

Members

dwSize

Specifies the size of the GLOBALENTRY structure, in bytes.

dwAddress

Specifies the linear address of the global-memory object.

dwBlockSize

Specifies the size of the global-memory object, in bytes.

hBlock

Identifies the global-memory object.

wcLock

Specifies the lock count. If this value is zero, the memory object is not locked.

wcPageLock

Specifies the page lock count. If this value is zero, the memory page is not locked.

wFlags

Specifies additional information about the memory object. This member can be the following value:

Value Meaning

GF_PDB_OWNER The process data block (PDB) for the task is the owner of the memory object.

wHeapPresent

Indicates whether a local heap exists within the global-memory object.

hOwner

Identifies the owner of the global-memory object.

wType

Specifies the memory type of the object. This type can be one of the following values:

Value Meaning

GT_UNKNOWN The memory type is not known.
GT_DGROUP The object contains the default data segment and the stack segment.
GT_DATA The object contains program data. (It may also contain stack and local heap data.)
GT_CODE The object contains program code. If GT_CODE is specified, the wData member contains the segment number for the code.
GT_TASK The object contains the task database.
GT_RESOURCE The object contains the resource type specified in wData.
GT_MODULE The object contains the module database.
GT_FREE The object belongs to the free memory pool.
GT_INTERNAL The object is reserved for internal use by Windows.
GT_SENTINEL The object is either the first or the last object on the global heap.
GT_BURGERMASTER The object contains a table that maps selectors to arena handles.

wData

If the wType member is not GT_CODE or GT_RESOURCE, wData is zero.

If wType is GT_CODE, GT_DATA, or GT_DGROUP, wData contains the segment number for the code.

If wType is GT_RESOURCE, wData specifies the type of resource. The type can be one of the following values:

Value Meaning

GD_ACCELERATORS The object contains data from the accelerator table.
GD_BITMAP The object contains data describing a bitmap. This includes the bitmap color table and the bitmap bits.
GD_CURSOR The object contains data describing a group of cursors. This includes the height, width, color count, bit count, and ordinal identifier for the cursors.
GD_CURSORCOMPONENT The object contains data describing a single cursor. This includes bitmap bits and bitmasks for the cursor.
GD_DIALOG The object contains data describing controls within a dialog box.
GD_ERRTABLE The object contains data from the error table.
GD_FONT The object contains data describing a single font. This data is identical to data in a Windows font file (.FNT).
GD_FONTDIR The object contains data describing a group of fonts. This includes the number of fonts in the resource and a table of metrics for each of these fonts.
GD_ICON The object contains data describing a group of icons. This includes the height, width, color count, bit count, and ordinal identifier for the icons.
GD_ICONCOMPONENT The object contains data describing a single icon. This includes bitmap bits and bitmaps for the icon.
GD_MENU The object contains menu data for normal and pop-up menu items.
GD_NAMETABLE The object contains data from the name table.
GD_RCDATA The object contains data from a user-defined resource.
GD_STRING The object contains data from the string table.
GD_USERDEFINED The resource has an unknown resource identifier or is an application-specific named type.

dwNext

Reserved for internal use by Windows.

dwNextAlt

Reserved for internal use by Windows.

See Also

GlobalEntryHandle, GlobalEntryModule, GlobalFirst, GlobalNext, GLOBALINFO