WDG (Windows Display Global Heap)

Syntax

WDG [[ghandle]]

Parameter

ghandle

A handle to a global memory object. The WDG command displays the five memory objects in the global heap, starting at the specified object. The ghandle must be a valid handle to an object allocated on the global heap. If ghandle is not specified, WDG displays the entire global heap.

Description

Global memory objects are displayed in the order in which Windows manages them, which is typically not in ascending handle order. The output from the WDG command has the following format:

Format

handle address size PDB locks type owner

Any field may not be present if that field is not defined for the block.

Field Description

handle Value of the global memory block handle.
address Address of the global memory block.
size Size of the block in bytes.
PDB Block owner. If present, indicates that that task's Process Descriptor Block is the owner of the block.
locks Count of locks on the block.
type The memory-block type.
owner The block owner's module name.