iw4x-client/src/Components/Modules/Exception.hpp
2022-12-27 10:40:54 +01:00

28 lines
668 B
C++

#pragma once
namespace Components
{
class Exception : public Component
{
public:
Exception();
~Exception();
static LPTOP_LEVEL_EXCEPTION_FILTER Hook();
static void SetMiniDumpType(bool codeseg, bool dataseg);
private:
static void SuspendProcess();
static LONG WINAPI ExceptionFilter(LPEXCEPTION_POINTERS ExceptionInfo);
static __declspec(noreturn) void LongJmp_Internal_Stub(jmp_buf env, int status);
static void CopyMessageToClipboard(const std::string& error);
static LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter_Stub(LPTOP_LEVEL_EXCEPTION_FILTER);
static int MiniDumpType;
static Utils::Hook SetFilterHook;
};
}