IDebugDataSpaces::WritePhysical method

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

Offset [in]

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

Buffer [in]

Specifies the data to write.

BufferSize [in]

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

BytesWritten [out, optional]

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

Return value

Return codeDescription
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

Target platform

Desktop

Header

Dbgeng.h (include Dbgeng.h)

 

 

Send comments about this topic to Microsoft

Show: