Using C++ with Visual Studio, I was wondering if there\'s an API that will print the callstack for me. Preferably, I\'d like to print a callstack 5 levels deep. Does windo
It looks like Microsoft's DbgHelp library can do what you want. Consult the StackWalk64 function's documentation on MSDN for more information. Also, this CodeProject article may be useful.