F4MP/codigos originales/tiltedcode/Code/client/CrashHandler.h
2026-01-06 18:53:59 +01:00

17 lines
411 B
C++

#pragma once
class CrashHandler
{
PVOID m_handler;
static LPTOP_LEVEL_EXCEPTION_FILTER m_pUnhandled; // For remembering "original" UnhandledExceptionFilter
public:
CrashHandler();
~CrashHandler();
static void RemovePreviousDump(std::filesystem::path path);
static inline LPTOP_LEVEL_EXCEPTION_FILTER GetOriginalUnhandledExceptionFilter()
{
return m_pUnhandled;
}
};