Debugging Tools for Windows

ReadVirtualUncached

The ReadVirtualUncached method reads memory from the target's virtual address space.

HRESULT
  IDebugDataSpaces::ReadVirtualUncached(
    IN ULONG64  Offset,
    OUT PVOID  Buffer,
    IN ULONG  BufferSize,
    OUT OPTIONAL PULONG  BytesRead
    );

Parameters

Offset
Specifies the location in the target's virtual address space to be read.
Buffer
Specifies the buffer to read the memory into.
BufferSize
Specifies the size in bytes of the buffer. This is also the number of bytes being requested.
BytesRead
Receives the number of bytes that were read. If it is set to NULL, this information is not returned.

Return Value

S_OK
The method was successful. It is possible that BytesRead is less than BufferSize, but at least one byte of data is being returned.

This method can also return error values. See Return Values for more details.

Interface Version

ReadVirtualUncached is available in all versions of IDebugDataSpaces.

Comments

This method fills the buffer with the contents of the memory in the target's virtual address space.

This method behaves identically to ReadVirtual, except that it avoids using the virtual memory cache. It is therefore useful for reading inherently volatile virtual memory, such as memory-mapped device areas, without contaminating or invalidating the cache.

Requirements

Headers: Defined in Dbgeng.h. Include Dbgeng.h.

See Also

ReadVirtual, WriteVirtualUncached

Build machine: CAPEBUILD