_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.
- Returns the count of bytes filled in return structure (0 if error)
- 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:
- The pages share the same state: committed, reserved, or free.
- If the initial page is not free, all pages were reserved by the same call to the _PageReserve service.
- The pages share the same read and write privileges: read-only, read-write, or no access.
- 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.