vlmcsd.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef __main_h
  2. #define __main_h
  3. #ifndef CONFIG
  4. #define CONFIG "config.h"
  5. #endif // CONFIG
  6. #include CONFIG
  7. #define __T(x) #x
  8. #define _T(x) __T(x)
  9. extern char *fn_log;
  10. #include "types.h"
  11. //int main(int argc, CARGV);
  12. extern void cleanup();
  13. int newmain();
  14. #if MULTI_CALL_BINARY < 1
  15. #define server_main main
  16. #else
  17. int server_main(int argc, CARGV argv);
  18. #endif
  19. #ifndef SA_NOCLDWAIT // required for Cygwin
  20. #define SA_NOCLDWAIT 0
  21. #endif
  22. #ifndef NO_INI_FILE
  23. #define INI_PARAM_RANDOMIZATION_LEVEL 1
  24. #define INI_PARAM_LCID 2
  25. #define INI_PARAM_LISTEN 3
  26. #define INI_PARAM_MAX_WORKERS 4
  27. #define INI_PARAM_CONNECTION_TIMEOUT 5
  28. #define INI_PARAM_PID_FILE 6
  29. #define INI_PARAM_LOG_FILE 7
  30. #define INI_PARAM_LOG_VERBOSE 8
  31. #define INI_PARAM_ACTIVATION_INTERVAL 9
  32. #define INI_PARAM_RENEWAL_INTERVAL 10
  33. #define INI_PARAM_DISCONNECT_IMMEDIATELY 11
  34. #define INI_PARAM_UID 12
  35. #define INI_PARAM_GID 13
  36. #define INI_PARAM_PORT 14
  37. #define INI_PARAM_RPC_NDR64 15
  38. #define INI_PARAM_RPC_BTFN 16
  39. #define INI_PARAM_FREEBIND 17
  40. #define INI_PARAM_PUBLIC_IP_PROTECTION_LEVEL 18
  41. #define INI_PARAM_LOG_DATE_AND_TIME 19
  42. #define INI_PARAM_WINDOWS 20
  43. #define INI_PARAM_OFFICE2010 21
  44. #define INI_PARAM_OFFICE2013 22
  45. #define INI_PARAM_OFFICE2016 23
  46. #define INI_FILE_PASS_1 1
  47. #define INI_FILE_PASS_2 2
  48. typedef struct
  49. {
  50. const char* const Name;
  51. uint_fast8_t Id;
  52. } IniFileParameter_t, *PIniFileParameter_t;
  53. #endif // NO_INI_FILE
  54. #endif // __main_h