Obtains information about a range of pages within the virtual-address space of the subject process.
#define INCL_DOSMEMMGR #include <os2.h> PVOID pb; /* The base address of the range of pages to be queried. */ PULONG pcb; /* A pointer to a ULONG containing the size of the range of pages. */ PULONG pFlag; /* A pointer to a ULONG containing a set of attribute flags describing the type of allocation and access protection for the specified range of pages. */ APIRET ulrc; /* Return Code. */ ulrc = DosQueryMem(pb, pcb, pFlag);