WritePhysical function (wdbgexts.h)

The WritePhysical function writes to physical memory.

Syntax

void WritePhysical(
  [in]            ULONG64 address,
  [in]            PVOID   buf,
  [in]            ULONG   size,
  [out, optional] PULONG  sizew
);

Parameters

[in] address

Specifies the physical address to write.

[in] buf

Specifies the address of an array of bytes to hold the data that is written.

[in] size

Specifies the number of bytes to write.

[out, optional] sizew

Receives the number of bytes actually written.

Return value

None

Remarks

For a WdbgExts extension, include wdbgexts.h. For a DbgEng extension, include wdbgexts.h before dbgeng.h. See Writing DbgEng Extension Code for details.

Requirements

Requirement Value
Target Platform Desktop
Header wdbgexts.h (include Wdbgexts.h, Dbgeng.h)