windows-nt/Source/XPSP1/NT/public/sdk/inc/errorrep.h
2020-09-26 16:20:57 +08:00

47 lines
1.3 KiB
C

/******************************************************************************
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