struct { DWORD register_ebp; DWORD register_esp) debugInfo = {ebp, esp}; RaiseException(STATUS_BAD_STACK, EXCEPTION_NONCONTINUABLE, 2, &debugInfo); /* this TerminateProcess can only be reached with a C debugger and trapping the "untrappable" exception above */ TerminateProcess(GetCurrentProcess(), STATUS_BAD_STACK);