ICorDebugThread3::CreateStackWalk Method

Creates an ICorDebugStackWalk object for the thread whose stack you want to unwind.

Syntax

C++
HRESULT CreateStackWalk([out] ICorDebugStackWalk **ppStackWalk);

Parameters

ppStackWalk [out] A pointer to address of the ICorDebugStackWalk object for the thread whose stack you want to unwind.

Return Value

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULT Description
S_OK The ICorDebugStackWalk object was successfully created.
E_FAIL The ICorDebugStackWalk object was not created.

Exceptions

Remarks

If the CreateStackWalk method succeeds, the returned ICorDebugStackWalk object's context is set to the thread's current context.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4

See also