#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; } };