Udostępnij za pośrednictwem


IDkmVolatileMemoryOperation.VolatileReadMemory Method

Definition

Read memory from the target process. This method differs from 'ReadMemory' 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.

public:
 void VolatileReadMemory(Microsoft::VisualStudio::Debugger::DkmProcess ^ process, System::UInt64 address, cli::array <System::Byte> ^ buffer);
public void VolatileReadMemory (Microsoft.VisualStudio.Debugger.DkmProcess process, ulong address, byte[] buffer);
abstract member VolatileReadMemory : Microsoft.VisualStudio.Debugger.DkmProcess * uint64 * byte[] -> unit
Public Sub VolatileReadMemory (process As DkmProcess, address As ULong, buffer 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 read the target process's memory.

buffer
Byte[]

[In,Out] A buffer that receives the contents from the address space of the target process. On failure, the content of this buffer is unspecified.

Exceptions

E_INVALID_MEMORY_ADDRESS indicates that one or more bytes of the request could not be read.

Applies to