IDkmVolatileMemoryOperation.VolatileWriteMemory Method

Definition

Write to the memory of the target process. This method differs from 'WriteMemory' in that this method can be called at any time (not just when the target is stopped) and the debugger will not try to cache the result of this operation. If any memory cannot be written to, an E_INVALID_MEMORY_ADDRESS error will be raised. Because the memory write may occur from run mode, this failure may happen after the copy operation has already begun, and thus may lead to memory corruption in the target process. For this reason, this function must be used with care, and failures may be fatal.

public:
 void VolatileWriteMemory(Microsoft::VisualStudio::Debugger::DkmProcess ^ process, System::UInt64 address, cli::array <System::Byte> ^ data);
public void VolatileWriteMemory (Microsoft.VisualStudio.Debugger.DkmProcess process, ulong address, byte[] data);
abstract member VolatileWriteMemory : Microsoft.VisualStudio.Debugger.DkmProcess * uint64 * byte[] -> unit
Public Sub VolatileWriteMemory (process As DkmProcess, address As ULong, data As Byte())

Parameters

process
DkmProcess

[In] DkmProcess represents a target process which is being debugged. The debugger debugs processes, so this is the basic unit of debugging. A DkmProcess can represent a system process or a virtual process such as minidumps.

address
UInt64

[In] The base address from which to write the target process's memory.

data
Byte[]

[In] Data to be written in the address space of the specified process.

Applies to