Share via


IDebugThread2::EnumFrameInfo

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

Retrieves a list of the stack frames for this thread.

Syntax

HRESULT EnumFrameInfo ( 
   FRAMEINFO_FLAGS        dwFieldSpec,
   UINT                   nRadix,
   IEnumDebugFrameInfo2** ppEnum
);
int EnumFrameInfo ( 
   enum_FRAMEINFO_FLAGS     dwFieldSpec,
   uint                     nRadix,
   out IEnumDebugFrameInfo2 ppEnum
);

Parameters

dwFieldSpec
[in] A combination of flags from the FRAMEINFO_FLAGS enumeration that specifies which fields of the FRAMEINFO structures are to be filled out. Specify the FIF_FUNCNAME_FORMAT flag to format the function name into a single string.

nRadix
[in] Radix used in formatting numerical information in the enumerator.

ppEnum
[out] Returns an IEnumDebugFrameInfo2 object that contains a list of FRAMEINFO structures describing the stack frame.

Return Value

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

Remarks

The thread's frames are enumerated in order, with the current frame enumerated first and the oldest frame enumerated last.

See also