home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / fsrc1241.zip / init.h < prev    next >
Text File  |  1996-08-18  |  1KB  |  39 lines

  1. /* INIT.h */
  2.  
  3. #define READCFG_CFG  1
  4. #define READCFG_INI  2
  5. #define READCFG_BOTH 3
  6.  
  7.  
  8. /* INI-Fehlercodes */
  9.  
  10. /* Fehlerklassen */
  11. #define ERRORCLASS_INI     0UL
  12. #define ERRORCLASS_CFGDLL  1UL
  13. #define ERRORCLASS_CFGFILE 2UL
  14.  
  15. /* Makros */
  16. #define INIERROR(x)     (x)
  17. #define CFGDLLERROR(x)  ((ERRORCLASS_CFGDLL << 16) | (x))
  18. #define CFGFILEERROR(x) ((ERRORCLASS_CFGFILE << 16) | (x))
  19.  
  20. #define ERRORCLASS(x)   ((x) >> 16)
  21. #define ERRORCODE(x)    ((x) & 0xffff)
  22.  
  23.  
  24. #define INIFILE_OK       0
  25. #define INIFILE_OPEN     1
  26. #define INIFILE_NEW      2
  27. #define INIFILE_VERSION  3
  28. #define INIFILE_DUPAREAS 4
  29.  
  30. /*--------------------------- Funktionsprototypen ---------------------------*/
  31. int ParseArgs(int argc, char **argv);
  32. ULONG ReReadAreas(HAB hab, char *CfgFileName, ULONG ulCfgType);
  33. int SaveIniAreas(HAB hab);
  34. int SaveIniProfile(HAB hab);
  35. void _Optlink ReadIniThread(void *phmq);
  36. void _Optlink SaveIniProfileThread(void *pParam);
  37. ULONG HandleInitErrors(HWND hwndClient, ULONG ulError);
  38. BOOL LogoDisplayEnabled(void);
  39.