GME  13
Public Attributes
tagCR_EXCEPTION_INFO Struct Reference

#include <CrashRpt.h>

List of all members.

Public Attributes

WORD cb
 Size of this structure in bytes; should be initialized before using.
PEXCEPTION_POINTERS pexcptrs
 Exception pointers.
int exctype
 Exception type.
DWORD code
 Code of SEH exception.
unsigned int fpe_subcode
 Floating point exception subcode.
const wchar_t * expression
 Assertion expression.
const wchar_t * function
 Function in which assertion happened.
const wchar_t * file
 File in which assertion happened.
unsigned int line
 Line number.
BOOL bManual
 Flag telling if the error report is generated manually or not.
HANDLE hSenderProcess
 Handle to the CrashSender.exe process.

Detailed Description

This structure defines the information needed to generate crash minidump file and provide the developer with other information about the error. This structure is used by the crGenerateErrorReport() function.

cb [in]

This must contain the size of this structure in bytes.

pexcptrs [in, optional]

Should contain the exception pointers. If this parameter is NULL, the current CPU state is used to generate exception pointers.

exctype [in]

The type of exception. This parameter may be one of the following:

code [in, optional]

Used if exctype is CR_SEH_EXCEPTION and represents the SEH exception code. If pexptrs is NULL, this value is used when generating exception information for initializing pexptrs->ExceptionRecord->ExceptionCode member, otherwise it is ignored.

fpe_subcode [in, optional]

Used if exctype is equal to CR_CPP_SIGFPE. It defines the floating point exception subcode (see signal() function ducumentation in MSDN).

expression, function, file and line [in, optional]

These parameters are used when exctype is CR_CPP_INVALID_PARAMETER. These members are typically non-zero when using debug version of CRT.

bManual [in]

Since v.1.2.4, bManual parameter should be equal to TRUE if the report is generated manually. The value of bManual parameter affects the automatic application restart behavior. If the application restart is requested by the CR_INST_APP_RESTART flag of CR_INSTALL_INFO::dwFlags structure member, and if bManual is FALSE, the application will be restarted after error report generation. If bManual is TRUE, the application won't be restarted.

hSenderProcess [out]

As of v.1.2.8, hSenderProcess parameter will contain the handle to the CrashSender.exe process when crGenerateErrorReport function returns. The caller may use this handle to wait until CrashSender.exe process exits and check the exit code.

Definition at line 1266 of file CrashRpt.h.


Member Data Documentation

Flag telling if the error report is generated manually or not.

Definition at line 1277 of file CrashRpt.h.

Size of this structure in bytes; should be initialized before using.

Definition at line 1268 of file CrashRpt.h.

Code of SEH exception.

Definition at line 1271 of file CrashRpt.h.

Exception type.

Definition at line 1270 of file CrashRpt.h.

Assertion expression.

Definition at line 1273 of file CrashRpt.h.

File in which assertion happened.

Definition at line 1275 of file CrashRpt.h.

Floating point exception subcode.

Definition at line 1272 of file CrashRpt.h.

Function in which assertion happened.

Definition at line 1274 of file CrashRpt.h.

Handle to the CrashSender.exe process.

Definition at line 1278 of file CrashRpt.h.

Line number.

Definition at line 1276 of file CrashRpt.h.

PEXCEPTION_POINTERS tagCR_EXCEPTION_INFO::pexcptrs

Exception pointers.

Definition at line 1269 of file CrashRpt.h.


The documentation for this struct was generated from the following file: