The actual function is in source/ghost.cpp
Example of using the windows api to get the call stack, useful for debugging.