IDebugMemoryContext2
This interface represents a position in the address space of the machine running the program being debugged.
IDebugMemoryContext2 : IUnknown
Notes for Implementers
The debug engine (DE) implements this interface to represent an address in memory.
Notes for Callers
A call to IDebugProperty2::GetMemoryContext or IDebugReference2::GetMemoryContext returns this interface. Also, calls to IDebugMemoryContext2::Add and IDebugMemoryContext2::Subtract return new copies of this interface after the appropriate arithmetic operation has been applied.
Methods in Vtable Order
The following table shows the methods of IDebugMemoryContext2.
Method |
Description |
---|---|
Gets the user-displayable name for this context. |
|
Gets information that describes this context. |
|
Adds a specified value to the current context's address to create a new context. |
|
Subtracts a specified value from the current context's address to create a new context. |
|
Compares two contexts in the manner indicated by compare flags. |
Remarks
Visual Studio's Memory window calls IDebugProperty2::GetMemoryContext to obtain the IDebugMemoryContext2 interface that contains the evaluated expression used for the memory address. This context is then passed to IDebugMemoryBytes2::ReadAt and IDebugMemoryBytes2::WriteAt to specify the address to read or write.
Requirements
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll
See Also
Reference
IDebugProperty2::GetMemoryContext
IDebugReference2::GetMemoryContext