_PageQuery


#include <vmm.h>

ULONG EXTERNAL _PageQuery(ULONG pbase,
    PMEMORY_BASIC_INFORMATION pmbi,     ULONG cbmbi);

Retrieves information about a range of virtual pages. This service carries out the work for the _VirtualQuery function in the Win32 API. Uses EAX, ECX, EDX and Flags.

pbase

Linear address of the first page in the range. This address is rounded down to the nearest page boundary. The range includes all consecutive pages starting at this address that share the following attributes:

pmbi and cbmbi

Address of a MEMORY_BASIC_INFORMATION structure that receives information about the range of pages, and the size of the structure in bytes.