HEAPENTRY32 structure

Describes one entry (block) of a heap that is being examined.

Syntax


typedef struct tagHEAPENTRY32 {
  SIZE_T    dwSize;
  HANDLE    hHandle;
  ULONG_PTR dwAddress;
  SIZE_T    dwBlockSize;
  DWORD     dwFlags;
  DWORD     dwLockCount;
  DWORD     dwResvd;
  DWORD     th32ProcessID;
  ULONG_PTR th32HeapID;
} HEAPENTRY32, *PHEAPENTRY32;

Members

dwSize

The size of the structure, in bytes. Before calling the Heap32First function, set this member to sizeof(HEAPENTRY32). If you do not initialize dwSize, Heap32First fails.

hHandle

A handle to the heap block.

dwAddress

The linear address of the start of the block.

dwBlockSize

The size of the heap block, in bytes.

dwFlags

This member can be one of the following values.

ValueMeaning
LF32_FIXED

The memory block has a fixed (unmovable) location.

LF32_FREE

The memory block is not used.

LF32_MOVEABLE

The memory block location can be moved.

 

dwLockCount

This member is no longer used and is always set to zero.

dwResvd

Reserved; do not use or alter.

th32ProcessID

The identifier of the process that uses the heap.

th32HeapID

The heap identifier. This is not a handle, and has meaning only to the tool help functions.

Examples

For an example, see Traversing the Heap List.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

TlHelp32.h

See also

Heap32First
Heap32Next

 

 

Community Additions

ADD
Show: