![]() |
crashrpt | |
A crash reporting system for Windows applications |
Data Fields | |
WORD | cb |
Size of this structure in bytes. | |
int | nStage |
Stage. | |
LPCSTR | pszErrorReportFolder |
Directory where crash report files are located. | |
CR_EXCEPTION_INFO * | pExceptionInfo |
Pointer to information about the crash. | |
LPVOID | pUserParam |
Pointer to user-defined data. | |
BOOL | bContinueExecution |
Whether to terminate the process (the default) or to continue program execution. |
Below, the stucture fields are described:
cb [in]
This contains the size of this structure in bytes.
nStage [in]
This field specifies the crash report generation stage. The callback function can be called once per each stage (depending on callback function's return value). Currently, there are two stages:
pszErrorReportFolder [in]
This field contains the absolute path to the directory containing uncompressed crash report files.
pExceptionInfo [in]
This field contains a pointer to CR_EXCEPTION_INFO structure.
pUserParam [in, optional]
This is a pointer to user-specified data passed to the crSetCrashCallback() function as pUserParam argument.
bContinueExecution [in, out]
This field is set to FALSE by default. The crash callback function may set it to true if it wants to continue its execution after crash report generation (otherwise the program will be terminated).
CR_CRASH_CALLBACK_INFOW and CR_CRASH_CALLBACK_INFOA are wide-character and multi-byte character versions of CR_CRASH_CALLBACK_INFO structure. In your program, use the CR_CRASH_CALLBACK_INFO typedef which is a character-set-independent version of the structure name.