install: add install sources and resources
[doom2d-restoration.git] / LIBS / HARDERR.H
blob37b15958e1c89c074bde0475331789d39e0e25c6
1 /*
2   Библиотека для DOS4GW
3   Версия 1.0
4   Обработка критических ошибок DOS
5   (C) Алексей Волынсков, 1996
6 */
8 #ifndef _DLL
9 #pragma library("av.lib")
10 #define DLLEXTERN extern
11 #else
12 #ifndef __B_AVLIB
13 #pragma library("avdll.lib")
14 #define DLLEXTERN __declspec(dllimport)
15 #else
16 #define DLLEXTERN extern
17 #endif
18 #endif
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 typedef int harderr_f(int error,int drive,int flags);
26 enum{HARDERR_IGNORE=0,HARDERR_RETRY,HARDERR_ABORT,HARDERR_FAIL};
28 #define HARDERRF_DISK           0x80
29 #define HARDERRF_MAY_IGNORE     0x20
30 #define HARDERRF_MAY_RETRY      0x10
31 #define HARDERRF_MAY_FAIL       8
32 #define HARDERRF_WRITE          1
34 DLLEXTERN void harderr_inst(harderr_f *);
36 #ifdef __cplusplus
38 #endif
40 #undef DLLEXTERN