IDebugDataSpaces4::VirtualToPhysical method (dbgeng.h)

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

Syntax

HRESULT VirtualToPhysical(
  [in]  ULONG64  Virtual,
  [out] PULONG64 Physical
);

Parameters

[in] Virtual

Specifies the location in the target's virtual address space to translate.

[out] Physical

Receives the physical memory address.

Return value

Return code Description
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.

Remarks

This method is only available in kernel-mode debugging.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)