Debugging Tools for Windows

ReadPhysical

The ReadPhysical method reads the target's memory from the specified physical address.

HRESULT
  IDebugDataSpaces::ReadPhysical(
    IN ULONG64  Offset,
    OUT PVOID  Buffer,
    IN ULONG  BufferSize,
    OUT OPTIONAL PULONG  BytesRead
    );

Parameters

Offset
Specifies the physical address of the memory to read.
Buffer
Receives the memory that is read.
BufferSize
Specifies the size in bytes of the buffer Buffer. This is the maximum number of bytes that will be read.
BytesRead
Receives the number of bytes read from the target's memory. If BytesRead is NULL, this information is not returned.

Return Value

S_OK
The method was successful.

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

Interface Version

ReadPhysical is available in all versions of IDebugDataSpaces.

Comments

This method is only available in kernel-mode debugging.

Requirements

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

Build machine: CAPEBUILD