forked from OS2World/APP-COMM-FleetStreet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.h
39 lines (30 loc) · 1011 Bytes
/
init.h
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
/* INIT.h */
#define READCFG_CFG 1
#define READCFG_INI 2
#define READCFG_BOTH 3
/* INI-Fehlercodes */
/* Fehlerklassen */
#define ERRORCLASS_INI 0UL
#define ERRORCLASS_CFGDLL 1UL
#define ERRORCLASS_CFGFILE 2UL
/* Makros */
#define INIERROR(x) (x)
#define CFGDLLERROR(x) ((ERRORCLASS_CFGDLL << 16) | (x))
#define CFGFILEERROR(x) ((ERRORCLASS_CFGFILE << 16) | (x))
#define ERRORCLASS(x) ((x) >> 16)
#define ERRORCODE(x) ((x) & 0xffff)
#define INIFILE_OK 0
#define INIFILE_OPEN 1
#define INIFILE_NEW 2
#define INIFILE_VERSION 3
#define INIFILE_DUPAREAS 4
/*--------------------------- Funktionsprototypen ---------------------------*/
int ParseArgs(int argc, char **argv);
ULONG ReReadAreas(HAB hab, char *CfgFileName, ULONG ulCfgType);
int SaveIniAreas(HAB hab);
int SaveIniProfile(HAB hab);
void _Optlink ReadIniThread(void *phmq);
void _Optlink SaveIniProfileThread(void *pParam);
ULONG HandleInitErrors(HWND hwndClient, ULONG ulError);
BOOL LogoDisplayEnabled(void);