source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/errhandlingapi.h@ 1167

Last change on this file since 1167 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 2.1 KB
Line 
1/**
2 * This file is part of the mingw-w64 runtime package.
3 * No warranty is given; refer to the file DISCLAIMER within this package.
4 */
5#ifndef _ERRHANDLING_H_
6#define _ERRHANDLING_H_
7
8#include <apiset.h>
9#include <apisetcconv.h>
10#include <minwindef.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
17typedef LONG (WINAPI *PTOP_LEVEL_EXCEPTION_FILTER) (struct _EXCEPTION_POINTERS *ExceptionInfo);
18typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER;
19 WINBASEAPI LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter (LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter);
20#endif /* WINAPI_PARTITION_APP */
21#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || defined(WINSTORECOMPAT)
22 WINBASEAPI LONG WINAPI UnhandledExceptionFilter (struct _EXCEPTION_POINTERS *ExceptionInfo);
23#endif
24#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
25 WINBASEAPI PVOID WINAPI AddVectoredExceptionHandler (ULONG First, PVECTORED_EXCEPTION_HANDLER Handler);
26 WINBASEAPI ULONG WINAPI RemoveVectoredExceptionHandler (PVOID Handle);
27 WINBASEAPI PVOID WINAPI AddVectoredContinueHandler (ULONG First, PVECTORED_EXCEPTION_HANDLER Handler);
28 WINBASEAPI ULONG WINAPI RemoveVectoredContinueHandler (PVOID Handle);
29#if _WIN32_WINNT >= 0x0600
30 WINBASEAPI UINT WINAPI GetErrorMode (VOID);
31#endif
32
33#if !defined (RC_INVOKED) && defined (WINBASE_DECLARE_RESTORE_LAST_ERROR)
34 WINBASEAPI VOID WINAPI RestoreLastError (DWORD dwErrCode);
35
36 typedef VOID (WINAPI *PRESTORE_LAST_ERROR) (DWORD);
37
38#define RESTORE_LAST_ERROR_NAME_A "RestoreLastError"
39#define RESTORE_LAST_ERROR_NAME_W L"RestoreLastError"
40#define RESTORE_LAST_ERROR_NAME TEXT ("RestoreLastError")
41#endif
42
43#endif
44
45#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
46 WINBASEAPI VOID WINAPI RaiseException (DWORD dwExceptionCode, DWORD dwExceptionFlags, DWORD nNumberOfArguments, CONST ULONG_PTR *lpArguments);
47 WINBASEAPI UINT WINAPI SetErrorMode (UINT uMode);
48 WINBASEAPI DWORD WINAPI GetLastError (VOID);
49 WINBASEAPI VOID WINAPI SetLastError (DWORD dwErrCode);
50#endif
51
52#ifdef __cplusplus
53}
54#endif
55#endif
Note: See TracBrowser for help on using the repository browser.