How can I get the `callstack of the program context that lead to error (not the unhandled exception callstack)
For example:
LONG WINAPI myUnhandledException(PEXCEPTION_POINTERS pExceptionPtrs)
{
//Get the eip when the crash occur
DWORD eip = pExceptionPtrs->ContextRecord->Eip;
//how to get crash call stack??
//0x123
//0x896
//Eip
}
int main()
{ //Set the unhandledexceptionfilter
SetUnhandledExceptionFilter(myUnhandledException);
}