23 lines
539 B
C++
23 lines
539 B
C++
|
|
|
|
namespace Components
|
|
{
|
|
class Exception : public Component
|
|
{
|
|
public:
|
|
Exception();
|
|
~Exception();
|
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
|
const char* GetName() { return "Exception"; };
|
|
#endif
|
|
static LPTOP_LEVEL_EXCEPTION_FILTER Hook();
|
|
|
|
private:
|
|
static LONG WINAPI ExceptionFilter(LPEXCEPTION_POINTERS ExceptionInfo);
|
|
static LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilterStub(LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter);
|
|
|
|
static Utils::Hook SetFilterHook;
|
|
};
|
|
}
|