| Debugging Tools for Windows | 
The WritePhysical2 method writes data to the specified physical address in the target's memory.
HRESULT
  IDebugDataSpaces4::WritePhysical2(
    IN ULONG64  Offset,
    IN ULONG  Flags,
    IN PVOID  Buffer,
    IN ULONG  BufferSize,
    OUT OPTIONAL PULONG  BytesWritten
    );
| Value | Description | 
|---|---|
| DEBUG_PHYSICAL_DEFAULT | Use the default memory caching. | 
| DEBUG_PHYSICAL_CACHED | The physical memory is cached. | 
| DEBUG_PHYSICAL_UNCACHED | The physical memory is uncached. | 
| DEBUG_PHYSICAL_WRITE_COMBINED | The physical memory is write-combined. | 
This method can also return error values. See Return Values for more details.
WritePhysical2 is available in IDebugDataSpaces4 and later versions.
This method is only available in kernel-mode debugging.
The flags DEBUG_PHYSICAL_CACHED, DEBUG_PHYSICAL_UNCACHED, and DEBUG_PHYSICAL_WRITE_COMBINED can only be used when the target is a live kernel target that is being debugged in the standard way (using a COM port, 1394 bus, or named pipe).
Headers: Defined in Dbgeng.h. Include Dbgeng.h.