Obtains information about a range of addresses within the virtual-address space of the calling process.
#define INCL_DOSMEMMGR #include <os2.h> PVOID pb; /* The base address of the range of addresses to be queried. */ PULONG pcb; /* A pointer to a ULONG containing the size of the range of addresses. */ 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 addresses. */ APIRET ulrc; /* Return Code. */ ulrc = DosTestAddr(pb, pcb, pFlag);