3 #include "Win32Exceptions.h"
5 std::string Win32StructuredException::win32_message(
unsigned int code, EXCEPTION_POINTERS * pExp)
8 _snprintf(buffer,
sizeof(buffer),
"Win32StructuredException code 0x%x pExpCode 0x%x pExpAddress %p", code, pExp->ExceptionRecord->ExceptionCode, pExp->ExceptionRecord->ExceptionAddress);
9 buffer[
sizeof(buffer)-1] =
'\0';
10 return std::string(buffer);
13 void seTransFunction(
unsigned int u, EXCEPTION_POINTERS* pExp)
18 void registerStructuredExceptionHandler()
20 _set_se_translator(seTransFunction);
An STL exception describing a Win32 Structured Exception.