Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Windows Display Global Heap (Description)
◄Summary► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The following illustrates the output format of the WDG command.
The fields are indicated by bold numbers:
1 2 3 4 5 6
047E (0A7D) 00000020b MYAPP PRIV MOVEABLE DISCARDABLE
7
0A6D 00000134b MYAPP DATA FIXED PGLOCKED=0001
8
0806 (0805) 00000600b PDB (0465)
9
FREE 000000A0b
The following describes the indicated fields:
1 A global memory handle value.
Global memory objects are displayed in the order in which
Windows manages them, which is typically not in ascending
handle order.
2 A memory selector.
This value is not displayed if the selector value is the same
as the global handle, as is the case for DATA objects.
3 The length in bytes of the global memory object.
4 The name of the module that allocated the object.
The name "PDB" is for Process Descriptor Block, which is
sometimes called the PSP.
5 The type of global memory object:
PRIV Application or DLL global data, or system object
CODE Code segment
DATA Data segment of application or DLL
FREE Free memory block in the global heap
6 One or more of the following combinations of memory allocation
attributes:
MOVEABLE
MOVEABLE DISCARDABLE
FIXED
7 The disposition of the object:
LOCKED = number The <number> shows a count of times the
object has been locked with GlobalLock or
LockData.
PGLOCKED = number The <number> shows a count of times Windows
has locked the object in its linear address
space.
8 The owner handle of the Process Descriptor Block.
9 A free memory block, followed by the size of the free block.
-♦-