📄 cmseh.h
字号:
#ifndef __MATRIX_SEH_H
#define __MATRIX_SEH_H
//0 Use the system default
//SEM_FAILCRITICALERRORS not display the critical-error-handler message box.
//SEM_NOALIGNMENTFAULTEXCEPT The system automatically fixes memory alignment faults and makes them invisible to the application.
//SEM_NOGPFAULTERRORBOX 捞巴 静磊 The system does not display the general-protection-fault message box
//SEM_NOOPENFILEERRORBOX The system does not display a message box when it fails to find a file
namespace MatrixCore
{
namespace System
{
#define OUTPUTFILENAME "seh.txt"
class CMSeh
{
public:
CMSeh(int iID_ErrWindow = 0/*SEM_NOGPFAULTERRORBOX*/,BOOL bMiniDump = FALSE);
~CMSeh();
public:
LPTOP_LEVEL_EXCEPTION_FILTER m_pFilter;
static BOOL CrashExceptionDump(PEXCEPTION_POINTERS ExceptionInfo, const char* szDumpFileName);
static BOOL WriteSeh(char *cFn,char* cBuf);
static BOOL GetLogicalAddress(PVOID addr, PTSTR szModule, DWORD len, DWORD §ion, DWORD &offset);
static void PrintStack(CONTEXT *pCtx);
static LONG _stdcall HandleDebugEvent(LPEXCEPTION_POINTERS lpEP);
private:
static BOOL m_bMiniDump;
};
}
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -