vlmcsd.h 1.4 KB

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