Debugging Tools for Windows |
The ReadVirtual method reads memory from the target's virtual address space.
HRESULT
IDebugDataSpaces::ReadVirtual(
IN ULONG64 Offset,
OUT PVOID Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG BytesRead
);
This method can also return error values. See Return Values for more details.
ReadVirtual is available in all versions of IDebugDataSpaces.
This method fills the buffer with the contents of the memory in the target's virtual address space.
This method may reference a cache of memory data when retrieving data. If the data is volatile, such as memory-mapped hardware state, use ReadVirtualUncached instead.
When reading memory that contains pointers, these pointers are for the target's virtual address space and not the engine's. For example, if a data structure contained a string, a second call to this method may be needed to read the contents of the string.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.