Advanced Strategic Command
mdump.h
Go to the documentation of this file.
1 
2 #include <windows.h>
3 
4 #if _MSC_VER < 1300
5 #define DECLSPEC_DEPRECATED
6 // VC6: change this path to your Platform SDK headers
7 #include "M:\\dev7\\vs\\devtools\\common\\win32sdk\\include\\dbghelp.h" // must be XP version of file
8 #else
9 // VC7: ships with updated headers
10 #include "dbghelp.h"
11 #endif
12 
13 // based on dbghelp.h
14 typedef BOOL (WINAPI *MINIDUMPWRITEDUMP)(HANDLE hProcess, DWORD dwPid, HANDLE hFile, MINIDUMP_TYPE DumpType,
15  CONST PMINIDUMP_EXCEPTION_INFORMATION ExceptionParam,
16  CONST PMINIDUMP_USER_STREAM_INFORMATION UserStreamParam,
17  CONST PMINIDUMP_CALLBACK_INFORMATION CallbackParam
18  );
19 
21 {
22  private:
23  static LPCSTR m_szAppName;
24 
25  static LONG WINAPI TopLevelFilter( struct _EXCEPTION_POINTERS *pExceptionInfo );
26 
27  public:
28  MiniDumper( LPCSTR szAppName );
29 };
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)
Definition: mdump.h:14
MiniDumper(LPCSTR szAppName)
Definition: mdump.cpp:23