Share via


ICorDebugThread3::CreateStackWalk Method

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

    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.

Remarks

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

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: 4

See Also

Other Resources

Debugging Interfaces

Debugging (Unmanaged API Reference)