mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-21 16:10:59 +00:00
23 lines
591 B
C
23 lines
591 B
C
|
|
||
|
#define NEED_DBGHELP_H
|
||
|
#define NEED_MMSYSTEM_H
|
||
|
#include "windows_inc.h"
|
||
|
|
||
|
// based on dbghelp.h
|
||
|
typedef BOOL (WINAPI *MINIDUMPWRITEDUMP)(HANDLE hProcess, DWORD dwPid, HANDLE hFile, MINIDUMP_TYPE DumpType,
|
||
|
CONST PMINIDUMP_EXCEPTION_INFORMATION ExceptionParam,
|
||
|
CONST PMINIDUMP_USER_STREAM_INFORMATION UserStreamParam,
|
||
|
CONST PMINIDUMP_CALLBACK_INFORMATION CallbackParam
|
||
|
);
|
||
|
|
||
|
class MiniDumper
|
||
|
{
|
||
|
private:
|
||
|
static LPCSTR m_szAppName;
|
||
|
|
||
|
static LONG WINAPI TopLevelFilter( struct _EXCEPTION_POINTERS *pExceptionInfo );
|
||
|
|
||
|
public:
|
||
|
MiniDumper( LPCSTR szAppName );
|
||
|
};
|