1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
#ifndef _BASE_ERROR_H_INCLUDED
#define _BASE_ERROR_H_INCLUDED
#ifdef INCL_BASE_ERROR_EXCLUSIVE
#define DECLEXT
#else
#define DECLEXT extern
#endif
//------ConstantDefines:
#define BASE_ERROR_NOERROR 0
#define BASE_ERROR_MEM 1
#define BASE_ERROR_FILES 2
#define BASE_ERROR_FOUND 3
#define BASE_ERROR_FULL 4
#define BASE_ERROR_OPEN 5
#define BASE_ERROR_READ 6
#define BASE_ERROR_WRITE 7
#define BASE_ERROR_CLINE 8
#define BASE_ERROR_BADCRC 9
#define BASE_ERROR_OTHER 10
#define BASE_ERROR_EXISTS 11
#define BASE_ERROR_USER 255
//------Variables:
typedef struct
{
BOOL DiskFull,
DidFailCRCCheck,
DoNotHandleCancel,
UNCSpaceError;
INT ErrorCode,
HardwareError,
HardwareErrorDrive;
} tBASE_ERROR;
DECLEXT tBASE_ERROR
BASE_ERROR;
void BASE_ERROR_EXTERN_HandleCancelPROC(void);
INT BASE_ERROR_EXTERN_HandleCancel(BOOL DoReadAllKeys);
void BASE_ERROR_EXTERN_Init(void);
#undef DECLEXT
#endif
|