Debugging Tools for Windows

QueryVirtual

The QueryVirtual method provides information about the specified pages in the target's virtual address space.

HRESULT
  IDebugDataSpaces2::QueryVirtual(
    IN ULONG64  Offset,
    OUT MEMORY_BASIC_INFORMATION64 *  Info
    );

Parameters

Offset
Specifies the location in the target's virtual address space of the pages whose information is requested.
Info
Receives the information about the memory page.

Return Value

S_OK
The method was successful.

This method can also return error values. See Return Values for more details.

Interface Version

QueryVirtual is available in IDebugDataSpaces2 and later versions.

Comments

This method may not work in all sessions.

This method returns attributes for a range of pages. This range is determined by Windows; it begins at the specified page, and includes all subsequent pages with the same attributes. The size of the range is given by the RegionSize field of the structure returned in Info.

MEMORY_BASIC_INFORMATION64 appears in the Microsoft Windows SDK header file winnt.h. It is the 64-bit equivalent of MEMORY_BASIC_INFORMATION, which is described in the Windows SDK documentation.

This method behaves in a similar way to the Windows SDK function VirtualQuery. See Windows SDK documentation for details.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

Build machine: CAPEBUILD