DkmProcess.VolatileWriteMemory(UInt64, Byte[]) 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(System::UInt64 Address, cli::array <System::Byte> ^ Data);
public:
 void VolatileWriteMemory(unsigned long long Address, Platform::Array <byte> ^ Data);
void VolatileWriteMemory(unsigned long Address, std::Array <byte> const & Data);
public void VolatileWriteMemory (ulong Address, byte[] Data);
member this.VolatileWriteMemory : uint64 * byte[] -> unit
Public Sub VolatileWriteMemory (Address As ULong, Data As Byte())

Parameters

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