Share via


IDebugApplication::AddStackFrameSniffer

Adds a stack frame enumerator provider to this application.

Syntax

HRESULT AddStackFrameSniffer(  
   IDebugStackFrameSniffer*  pdsfs,  
   DWORD*                    pdwCookie  
);  

Parameters

pdsfs
[in] The stack frame enumerator provider to add to this application.

pdwCookie
[out] A cookie that is used to remove this stack frame enumerator provider from the application.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.

Remarks

Although language engines typically call this method to expose their stack frames to the debugger, it is possible for other entities to expose stack frames.

See also

IDebugApplication Interface
IDebugApplication::RemoveStackFrameSniffer
IDebugStackFrameSniffer Interface