Debugging Tools for Windows

WriteTypedDataPhysical

The WriteTypedDataPhysical method writes the value of a variable in the target computer's physical memory.

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

Parameters

Offset
Specifies the physical address in the target computer's memory of the variable.
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
Specifies the buffer containing the data to be written.
BufferSize
Specifies the size in bytes of the buffer Buffer. This is the maximum number of bytes to be written.
BytesWritten
Receives the number of bytes that were written. If BytesWritten is NULL, this information is not returned.

Return Value

S_OK
The method was successful.
S_FALSE
The method was successful. All the bytes in the buffer Buffer were written. However, the buffer was smaller than the size of the specified type.

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

Interface Version

WriteTypedDataPhysical 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 write 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 WritePhysical.

For more information about types, see Types.

Requirements

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

Build machine: CAPEBUILD