From 6ddad5e1dd4afd665f89a8bc206e0d0c63a80dbd Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Date: Thu, 9 Oct 2003 05:52:12 +0000 Subject: * include/errorep.h: New file. * lib/faultrep.def: New file. --- winsup/w32api/ChangeLog | 6 ++++++ winsup/w32api/include/errorrep.h | 40 ++++++++++++++++++++++++++++++++++++++++ winsup/w32api/lib/faultrep.def | 5 +++++ winsup/w32api/lib/test.c | 1 + 4 files changed, 52 insertions(+) create mode 100644 winsup/w32api/include/errorrep.h create mode 100644 winsup/w32api/lib/faultrep.def diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index af8821e..243bb18 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,5 +1,11 @@ 2003-10-09 Dimitri Papadopoulos + * include/errorep.h: New file. + + * lib/faultrep.def: New file. + +2003-10-09 Dimitri Papadopoulos + * include/winbase.h (AddVectoredExceptionHandler): Define if _WIN32_WINNT >= 0x0500. diff --git a/winsup/w32api/include/errorrep.h b/winsup/w32api/include/errorrep.h new file mode 100644 index 0000000..75d8f80 --- /dev/null +++ b/winsup/w32api/include/errorrep.h @@ -0,0 +1,40 @@ +#ifndef _ERRORREP_H +#define _ERRORREP_H +#if __GNUC__ >= 3 +#pragma GCC system_header +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if (_WIN32_WINNT >= 0x0501) +typedef enum { + frrvErr = 3, + frrvErrNoDW = 4, + frrvErrTimeout = 5, + frrvLaunchDebugger = 6, + frrvOk = 0, + frrvOkHeadless = 7, + frrvOkManifest = 1, + frrvOkQueued = 2 +} EFaultRepRetVal; +BOOL WINAPI AddERExcludedApplicationA(LPCSTR); +BOOL WINAPI AddERExcludedApplicationW(LPCWSTR); +EFaultRepRetVal WINAPI ReportFault(LPEXCEPTION_POINTERS,DWORD); +#endif + +#ifdef UNICODE +#if (_WIN32_WINNT >= 0x0501) +#define AddERExcludedApplication AddERExcludedApplicationW +#endif +#else +#if (_WIN32_WINNT >= 0x0501) +#define AddERExcludedApplication AddERExcludedApplicationA +#endif +#endif + +#ifdef __cplusplus +} +#endif +#endif diff --git a/winsup/w32api/lib/faultrep.def b/winsup/w32api/lib/faultrep.def new file mode 100644 index 0000000..dbc7272 --- /dev/null +++ b/winsup/w32api/lib/faultrep.def @@ -0,0 +1,5 @@ +LIBRARY faultrep.DLL +EXPORTS +AddERExcludedApplicationA@4 +AddERExcludedApplicationW@4 +ReportFault@8 diff --git a/winsup/w32api/lib/test.c b/winsup/w32api/lib/test.c index f17fcf7..4be8bc1 100644 --- a/winsup/w32api/lib/test.c +++ b/winsup/w32api/lib/test.c @@ -81,6 +81,7 @@ #include #include #include +#include #ifndef __OBJC__ /* problems with BOOL */ #include -- cgit v1.1