Debugging Tools for Windows

VirtualToPhysical

The VirtualToPhysical method translates a location in the target's virtual address space into a physical memory address.

HRESULT
  IDebugDataSpaces2::VirtualToPhysical(
    IN ULONG64  Virtual,
    OUT PULONG64  Physical
    );

Parameters

Virtual
Specifies the location in the target's virtual address space to translate.
Physical
Receives the physical memory address.

Return Value

S_OK
The method was successful.
HRESULT_FROM_NT(STATUS_NO_PAGEFILE)
No physical page containing the specified address could be found.

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

Interface Version

VirtualToPhysical is available in IDebugDataSpaces2 and later versions.

Comments

This method is only available in kernel-mode debugging.

Requirements

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

Build machine: CAPEBUILD