mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-18 02:01:46 +00:00
c660bfb129
2. Added the svn:ignore properties to clean up the output of "svn update" so that it doesn't show some unversioned files anymore sush as compiled binaries and object files(*.a). 3. Converted the end-of-line charapter sequences from Windows(CR LF) to Unix format(LF). It used to be a mixture of both styles that often confuse some programs. If some files have to be in Windows format, you should add the svn:eol-style on them(svn propset svn:eol-style native polymer/eduke32/source/thefile.c). git-svn-id: https://svn.eduke32.com/eduke32@854 1a8010ca-5511-0410-912e-c29ae57300e0
30 lines
882 B
C++
30 lines
882 B
C++
#define _WIN32_WINNT 0x0500
|
|
#include <windows.h>
|
|
#include <assert.h>
|
|
#include <cstring>
|
|
#if _MSC_VER < 1300
|
|
#define DECLSPEC_DEPRECATED
|
|
// VC6: change this path to your Platform SDK headers
|
|
#include "M:\\dev7\\vs\\devtools\\common\\win32sdk\\include\\dbghelp.h" // must be XP version of file
|
|
#else
|
|
// VC7: ships with updated headers
|
|
#include "dbghelp.h"
|
|
#endif
|
|
|
|
// 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 );
|
|
};
|