Can someone give an example of how to get programmatically the call stack of the currently running C++ program on Windows? From some threads (e.g. print call stack in C or C++ ) I have got a suggestion to use DbgHelp. However the library seems quite large and intended for many more features than just the call stack, so studying the library without an example can take too long time. Also the library seems obsolete because the last version of it, 6.12, is dated 01 February 2010 (7 years old as of now). Is there something new for getting call stack from C++ now?
If you are giving an example of DbgHelp usage, could you also describe how to install it, add to the project and ship with my program?
I would like to get undecorated names of all functions on the call stack, preferrably with values of the parameters.