For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Provides methods to do a stack walk using information in the .pdb file.

IDiaStackWalker: IUnknown  

The following table shows the methods of IDiaStackWalker.

IDiaStackWalker::getEnumFramesRetrieves a stack frame enumerator for x86 platforms.
IDiaStackWalker::getEnumFrames2Retrieves a stack frame enumerator for a specific platform type.

This interface is used to obtain a list of stack frames for a loaded module. Each of the methods is passed an IDiaStackWalkHelper object (implemented by the client application) which provides the necessary information to create the list of stack frames.

This interface is obtained by calling the CoCreateInstance method with the class identifier CLSID_DiaStackWalker and the interface ID of IID_IDiaStackWalker. The example shows how this interface is obtained.

This example shows how to obtain the IDiaStackWalker interface.

      IDiaStackWalker* pStackWalker;  
HRESULT hr = CoCreateInstance(CLSID_DiaStackWalker,  
                              (void**) &pStackWalker);  
if (FAILED(hr))  
    // Report error and exit  

Header: Dia2.h

Library: diaguids.lib

DLL: msdia80.dll

Interfaces (Debug Interface Access SDK)