Debugging Tools for Windows

WritePhysical

The WritePhysical method writes data to the specified physical address in the target's memory.

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

Parameters

Offset
Specifies the physical address of the memory to write the data to.
Buffer
Specifies the data to write.
BufferSize
Specifies the size in bytes of the buffer Buffer. This is the maximum number of bytes that will be written.
BytesWritten
Receives the number of bytes written to the target's memory. If BytesWritten 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

WritePhysical 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