Debugging Tools for Windows

ReadTypedDataPhysical

The ReadTypedDataPhysical method reads the value of a variable from the target computer's physical memory.

HRESULT
  IDebugSymbols::ReadTypedDataPhysical(
    IN ULONG64  Offset,
    IN ULONG64  Module,
    IN ULONG  TypeId,
    OUT PVOID  Buffer,
    IN ULONG  BufferSize,
    OUT OPTIONAL PULONG  BytesRead
    );

Parameters

Offset
Specifies the physical address in the target computer's memory of the variable to be read.
Module
Specifies the base address of the module containing the type of the variable.
TypeId
Specifies the type ID of the type of the variable.
Buffer
Receives the data that was 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 that were read. If BytesRead is NULL, this information is not returned.

Return Value

S_OK
The method was successful.
S_FALSE
The method was successful. However, the buffer Buffer was not large enough to hold all the data and it was truncated.

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

Interface Version

ReadTypedDataPhysical is available in all versions of IDebugSymbols.

Comments

This method is only available in kernel mode debugging.

The number of bytes this method attempts to read is the smaller of the size of the buffer and the size of the variable.

This is a convenience method. The same result can be obtained by calling GetTypeSize and ReadPhysical.

For more information about types, see Types.

Requirements

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

Build machine: CAPEBUILD