IDkmGPUMemoryOperation.ReadMemory Method

Definition

Read the memory of the target GPU process. The method is on DkmGPUComputeThread because it may read thread local memory, group shared memory or global memory.

public:
 int ReadMemory(Microsoft::VisualStudio::Debugger::GPU::DkmGPUComputeThread ^ computeThread, System::UInt64 address, System::UInt64 instructionPointer, Microsoft::VisualStudio::Debugger::DkmReadMemoryFlags flags, cli::array <System::Byte> ^ buffer);
public int ReadMemory (Microsoft.VisualStudio.Debugger.GPU.DkmGPUComputeThread computeThread, ulong address, ulong instructionPointer, Microsoft.VisualStudio.Debugger.DkmReadMemoryFlags flags, byte[] buffer);
abstract member ReadMemory : Microsoft.VisualStudio.Debugger.GPU.DkmGPUComputeThread * uint64 * uint64 * Microsoft.VisualStudio.Debugger.DkmReadMemoryFlags * byte[] -> int
Public Function ReadMemory (computeThread As DkmGPUComputeThread, address As ULong, instructionPointer As ULong, flags As DkmReadMemoryFlags, buffer As Byte()) As Integer

Parameters

computeThread
DkmGPUComputeThread

[In] DkmGPUComputeThread represents a compute thread running in the GPU target process.

address
UInt64

[In] The address from which to read the target GPU process's memory.

instructionPointer
UInt64

[In] The instruction pointer where to resolve address to register location.

flags
DkmReadMemoryFlags

[In] Flags controlling the behavior of DkmProcess.ReadMemory and DkmProcess.ReadMemoryString.

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.

Returns

[Out] Indicates the number of bytes read from the target GPU process. If DkmReadMemoryFlags.AllowPartialRead is clear, on success this value will always be exactly equal to the input size. If DkmReadMemoryFlags.AllowPartialRead is specified, on success, this value will be greater than zero.

Applies to