ErrorRep.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- /******************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Module Name:
- errorrep.h
- Abstract:
- contains functions used to report errors to Microsoft
- ******************************************************************************/
- #ifndef __ERRORREP_H__
- #define __ERRORREP_H__
- typedef enum tagEFaultRepRetVal
- {
- frrvOk = 0,
- frrvOkManifest,
- frrvOkQueued,
- frrvErr,
- frrvErrNoDW,
- frrvErrTimeout,
- frrvLaunchDebugger,
- frrvOkHeadless
- } EFaultRepRetVal;
- EFaultRepRetVal APIENTRY ReportFault(LPEXCEPTION_POINTERS pep, DWORD dwOpt);
- BOOL APIENTRY AddERExcludedApplicationA(LPCSTR szApplication);
- BOOL APIENTRY AddERExcludedApplicationW(LPCWSTR wszApplication);
- typedef EFaultRepRetVal (APIENTRY *pfn_REPORTFAULT)(LPEXCEPTION_POINTERS, DWORD);
- typedef EFaultRepRetVal (APIENTRY *pfn_ADDEREXCLUDEDAPPLICATIONA)(LPCSTR);
- typedef EFaultRepRetVal (APIENTRY *pfn_ADDEREXCLUDEDAPPLICATIONW)(LPCWSTR);
- #ifdef UNICODE
- #define AddERExcludedApplication AddERExcludedApplicationA
- #define pfn_ADDEREXCLUDEDAPPLICATION pfn_ADDEREXCLUDEDAPPLICATIONA
- #else
- #define AddERExcludedApplication AddERExcludedApplicationW
- #define pfn_ADDEREXCLUDEDAPPLICATION pfn_ADDEREXCLUDEDAPPLICATIONW
- #endif
- #endif