Edit

ISOSDacInterface::GetStackReferences Method

Retrieves an enumerator for references on a thread call stack.

Note

This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

Syntax

HRESULT GetStackReferences([in] DWORD osThreadID, [out] ISOSStackRefEnum **ppEnum);

Parameters

osThreadID
[in] The operating system thread ID for the stack to enumerate.

ppEnum
[out] A pointer to an ISOSStackRefEnum interface pointer that receives the stack-reference enumerator.

Remarks

The provided method is part of the ISOSDacInterface interface and corresponds to the 80th slot of the virtual method table.

The returned ISOSStackRefEnum enumerator derives from ISOSEnum and provides a Next method that returns SOSStackRefData entries. It also provides an EnumerateErrors method that reports stack frames for which the runtime could not enumerate GC references.

Requirements

Platforms: See System Requirements.
Header: None
Library: None
.NET Framework Versions: Available since 4.7

See also