Share via


IDebugStackFrame3::GetUnwindCodeContext

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Returns the code context representing a location if a stack unwind operation occurred.

Syntax

HRESULT GetUnwindCodeContext(
   IDebugCodeContext2 **ppCodeContext
);
int GetUnwindCodeContext(
   out IDebugCodeContext2 ppCodeContext
);

Parameters

ppCodeContext
[out] Returns an IDebugCodeContext2 object that represents the code context location if a stack unwind occurred.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Even though this method might return a code context for the location after a stack unwind, it does not necessarily mean the stack unwind can actually occur in the current stack frame.

See also