IDebugDataSpaces4::WritePhysical method (dbgeng.h)

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

Syntax

HRESULT WritePhysical(
  [in]            ULONG64 Offset,
  [in]            PVOID   Buffer,
  [in]            ULONG   BufferSize,
  [out, optional] PULONG  BytesWritten
);

Parameters

[in] Offset

Specifies the physical address of the memory to write the data to.

[in] Buffer

Specifies the data to write.

[in] BufferSize

Specifies the size in bytes of the buffer Buffer. This is the maximum number of bytes that will be written.

[out, optional] BytesWritten

Receives the number of bytes written to the target's memory. If BytesWritten is NULL, this information is not returned.

Return value

Return code Description
S_OK
The method was successful.
 

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)