Debugging Tools for Windows |
The SetScope method sets the current scope.
HRESULT
IDebugSymbols::SetScope(
IN ULONG64 InstructionOffset,
IN OPTIONAL PDEBUG_STACK_FRAME ScopeFrame,
IN OPTIONAL PVOID ScopeContext,
IN ULONG ScopeContextSize
);
This method may also return error values. See Return Values for more details.
SetScope is available in all versions of IDebugSymbols.
If only InstructionOffset is provided, the scope can be used to look up symbol names; however, the values of these symbols will not be available.
To set the scope to a previous state, ScopeContext must be provided. This is not always necessary (for example, if you only wish to access the symbols and not the registers). To set the scope to a frame on the current stack, SetScopeFrameByIndex can be used.
For more information about scopes, see Scopes and Symbol Groups.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.