iw4x-client/src/Components/Modules/Exception.hpp

28 lines
668 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
2017-01-19 16:23:59 -05:00
namespace Components
{
class Exception : public Component
{
public:
Exception();
~Exception();
static LPTOP_LEVEL_EXCEPTION_FILTER Hook();
static void SetMiniDumpType(bool codeseg, bool dataseg);
2017-01-19 16:23:59 -05:00
private:
static void SuspendProcess();
2017-01-19 16:23:59 -05:00
static LONG WINAPI ExceptionFilter(LPEXCEPTION_POINTERS ExceptionInfo);
2022-12-25 12:23:53 -05:00
static __declspec(noreturn) void LongJmp_Internal_Stub(jmp_buf env, int status);
static void CopyMessageToClipboard(const std::string& error);
2017-01-19 16:23:59 -05:00
2022-12-27 04:40:54 -05:00
static LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter_Stub(LPTOP_LEVEL_EXCEPTION_FILTER);
static int MiniDumpType;
2017-01-19 16:23:59 -05:00
static Utils::Hook SetFilterHook;
};
}