IDebugHostSymbol::GetContext method (dbgmodel.h)
The GetContext method returns the context where the symbol is valid. While this will represent things such as the debug target and process/address space in which the symbol exists, it may not be as specific as a context retrieved from other means (e.g.: from an IModelObject).
Syntax
HRESULT GetContext(
IDebugHostContext **context
);
Parameters
context
The host context in which the symbol is located will be returned here.
Return value
This method returns HRESULT that indicates success or failure.
Remarks
Code Sample
ComPtr<IDebugHostSymbol> spSymbol; /* get a symbol */
ComPtr<IDebugHostContext> spContext;
if (SUCCEEDED(spSymbol->GetContext(&spContext)))
{
// spContext will contain the context that the symbol is within
// (e.g.: session, process)
}
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |