17 #ifndef __CRASHRPT_PROBE_H__ 18 #define __CRASHRPT_PROBE_H__ 21 #define CRASHRPTPROBE_EXTERNC extern "C" 23 #define CRASHRPTPROBE_EXTERNC 40 #define __out_ecount(x) 42 #ifndef __out_ecount_z 43 #define __out_ecount_z(x) 46 #define CRASHRPTPROBE_API(rettype) CRASHRPTPROBE_EXTERNC rettype WINAPI 116 CRASHRPTPROBE_API(
int)
118 __in LPCWSTR pszFileName,
119 __in_opt LPCWSTR pszMd5Hash,
120 __in_opt LPCWSTR pszSymSearchPath,
121 __reserved DWORD dwFlags,
130 CRASHRPTPROBE_API(
int)
132 __in LPCSTR pszFileName,
133 __in_opt LPCSTR pszMd5Hash,
134 __in_opt LPCSTR pszSymSearchPath,
135 __reserved DWORD dwFlags,
144 #define crpOpenErrorReport crpOpenErrorReportW 146 #define crpOpenErrorReport crpOpenErrorReportA 165 CRASHRPTPROBE_API(
int)
172 #define CRP_TBL_XMLDESC_MISC _T("XmlDescMisc") 173 #define CRP_TBL_XMLDESC_FILE_ITEMS _T("XmlDescFileItems") 174 #define CRP_TBL_XMLDESC_CUSTOM_PROPS _T("XmlDescCustomProps") 175 #define CRP_TBL_MDMP_MISC _T("MdmpMisc") 176 #define CRP_TBL_MDMP_MODULES _T("MdmpModules") 177 #define CRP_TBL_MDMP_THREADS _T("MdmpThreads") 178 #define CRP_TBL_MDMP_LOAD_LOG _T("MdmpLoadLog") 182 #define CRP_META_ROW_COUNT _T("RowCount") 187 #define CRP_COL_CRASHRPT_VERSION _T("CrashRptVersion") 188 #define CRP_COL_CRASH_GUID _T("CrashGUID") 189 #define CRP_COL_APP_NAME _T("AppName") 190 #define CRP_COL_APP_VERSION _T("AppVersion") 191 #define CRP_COL_IMAGE_NAME _T("ImageName") 192 #define CRP_COL_OPERATING_SYSTEM _T("OperatingSystem") 193 #define CRP_COL_SYSTEM_TIME_UTC _T("SystemTimeUTC") 194 #define CRP_COL_EXCEPTION_TYPE _T("ExceptionType") 195 #define CRP_COL_EXCEPTION_CODE _T("ExceptionCode") 196 #define CRP_COL_INVPARAM_FUNCTION _T("InvParamFunction") 197 #define CRP_COL_INVPARAM_EXPRESSION _T("InvParamExpression") 198 #define CRP_COL_INVPARAM_FILE _T("InvParamFile") 199 #define CRP_COL_INVPARAM_LINE _T("InvParamLine") 200 #define CRP_COL_FPE_SUBCODE _T("FPESubcode") 201 #define CRP_COL_USER_EMAIL _T("UserEmail") 202 #define CRP_COL_PROBLEM_DESCRIPTION _T("ProblemDescription") 203 #define CRP_COL_MEMORY_USAGE_KBYTES _T("MemoryUsageKbytes") 204 #define CRP_COL_GUI_RESOURCE_COUNT _T("GUIResourceCount") 205 #define CRP_COL_OPEN_HANDLE_COUNT _T("OpenHandleCount") 206 #define CRP_COL_OS_IS_64BIT _T("OSIs64Bit") 207 #define CRP_COL_GEO_LOCATION _T("GeoLocation") 210 #define CRP_COL_FILE_ITEM_NAME _T("FileItemName") 211 #define CRP_COL_FILE_ITEM_DESCRIPTION _T("FileItemDescription") 214 #define CRP_COL_PROPERTY_NAME _T("PropertyName") 215 #define CRP_COL_PROPERTY_VALUE _T("PropertyValue") 218 #define CRP_COL_CPU_ARCHITECTURE _T("CPUArchitecture") 219 #define CRP_COL_CPU_COUNT _T("CPUCount") 220 #define CRP_COL_PRODUCT_TYPE _T("ProductType") 221 #define CRP_COL_OS_VER_MAJOR _T("OSVerMajor") 222 #define CRP_COL_OS_VER_MINOR _T("OSVerMinor") 223 #define CRP_COL_OS_VER_BUILD _T("OSVerBuild") 224 #define CRP_COL_OS_VER_CSD _T("OSVerCSD") 225 #define CRP_COL_EXCPTRS_EXCEPTION_CODE _T("ExptrsExceptionCode") 226 #define CRP_COL_EXCEPTION_ADDRESS _T("ExceptionAddress") 227 #define CRP_COL_EXCEPTION_THREAD_ROWID _T("ExceptionThreadROWID") 228 #define CRP_COL_EXCEPTION_THREAD_STACK_MD5 _T("ExceptionThreadStackMD5") 229 #define CRP_COL_EXCEPTION_MODULE_ROWID _T("ExceptionModuleROWID") 232 #define CRP_COL_MODULE_NAME _T("ModuleName") 233 #define CRP_COL_MODULE_IMAGE_NAME _T("ModuleImageName") 234 #define CRP_COL_MODULE_BASE_ADDRESS _T("ModuleBaseAddress") 235 #define CRP_COL_MODULE_SIZE _T("ModuleSize") 236 #define CRP_COL_MODULE_LOADED_PDB_NAME _T("LoadedPDBName") 237 #define CRP_COL_MODULE_LOADED_IMAGE_NAME _T("LoadedImageName") 238 #define CRP_COL_MODULE_SYM_LOAD_STATUS _T("ModuleSymLoadStatus") 241 #define CRP_COL_THREAD_ID _T("ThdeadID") 242 #define CRP_COL_THREAD_STACK_TABLEID _T("ThreadStackTABLEID") 245 #define CRP_COL_STACK_MODULE_ROWID _T("StackModuleROWID") 246 #define CRP_COL_STACK_SYMBOL_NAME _T("StackSymbolName") 247 #define CRP_COL_STACK_OFFSET_IN_SYMBOL _T("StackOffsetInSymbol") 248 #define CRP_COL_STACK_SOURCE_FILE _T("StackSourceFile") 249 #define CRP_COL_STACK_SOURCE_LINE _T("StackSourceLine") 250 #define CRP_COL_STACK_ADDR_PC_OFFSET _T("StackAddrPCOffset") 253 #define CRP_COL_LOAD_LOG_ENTRY _T("LoadLogEntry") 312 CRASHRPTPROBE_API(
int)
316 LPCWSTR lpszColumnId,
318 __out_ecount_z(pcchBuffSize) LPWSTR lpszBuffer,
320 __out PULONG pcchCount
328 CRASHRPTPROBE_API(
int)
334 __out_ecount_z(pcchBuffSize) LPSTR lpszBuffer,
336 __out PULONG pcchCount
344 #define crpGetProperty crpGetPropertyW 346 #define crpGetProperty crpGetPropertyA 380 CRASHRPTPROBE_API(
int)
383 LPCWSTR lpszFileName,
384 LPCWSTR lpszFileSaveAs,
385 BOOL bOverwriteExisting
392 CRASHRPTPROBE_API(
int)
396 LPCSTR lpszFileSaveAs,
397 BOOL bOverwriteExisting
405 #define crpExtractFile crpExtractFileW 407 #define crpExtractFile crpExtractFileA 443 CRASHRPTPROBE_API(
int)
445 __out_ecount(cchBuffSize) LPWSTR pszBuffer,
446 __in UINT cchBuffSize);
453 CRASHRPTPROBE_API(
int)
455 __out_ecount(cchBuffSize) LPSTR pszBuffer,
456 __in UINT cchBuffSize);
463 #define crpGetLastErrorMsg crpGetLastErrorMsgW 465 #define crpGetLastErrorMsg crpGetLastErrorMsgA 469 #endif __CRASHRPT_PROBE_H__ crpExtractFileW(CrpHandle hReport, LPCWSTR lpszFileName, LPCWSTR lpszFileSaveAs, BOOL bOverwriteExisting)
Extracts a file from the opened error report.
Definition: CrashRptProbe.cpp:1254
crpGetPropertyA(CrpHandle hReport, LPCSTR lpszTableId, LPCSTR lpszColumnId, INT nRowIndex, __out_ecount_z(pcchBuffSize) LPSTR lpszBuffer, ULONG cchBuffSize, __out PULONG pcchCount)
Retrieves a string property from crash report.
crpOpenErrorReportW(__in LPCWSTR pszFileName, __in_opt LPCWSTR pszMd5Hash, __in_opt LPCWSTR pszSymSearchPath, __reserved DWORD dwFlags, __out CrpHandle *phReport)
Opens a zipped crash report file.
crpCloseErrorReport(CrpHandle hReport)
Closes the crash report.
Definition: CrashRptProbe.cpp:451
int CrpHandle
Handle to an opened error report.
Definition: CrashRptProbe.h:49
crpGetLastErrorMsgW(__out_ecount(cchBuffSize) LPWSTR pszBuffer, __in UINT cchBuffSize)
Gets the last CrashRptProbe error message.
crpOpenErrorReportA(__in LPCSTR pszFileName, __in_opt LPCSTR pszMd5Hash, __in_opt LPCSTR pszSymSearchPath, __reserved DWORD dwFlags, __out CrpHandle *phReport)
Opens a zipped crash report file.
crpExtractFileA(CrpHandle hReport, LPCSTR lpszFileName, LPCSTR lpszFileSaveAs, BOOL bOverwriteExisting)
Extracts a file from the opened error report.
Definition: CrashRptProbe.cpp:1306
crpGetLastErrorMsgA(__out_ecount(cchBuffSize) LPSTR pszBuffer, __in UINT cchBuffSize)
Gets the last CrashRptProbe error message.
crpGetPropertyW(CrpHandle hReport, LPCWSTR lpszTableId, LPCWSTR lpszColumnId, INT nRowIndex, __out_ecount_z(pcchBuffSize) LPWSTR lpszBuffer, ULONG cchBuffSize, __out PULONG pcchCount)
Retrieves a string property from crash report.