vlmcsd/src/vlmcsd.h

71 lines
1.5 KiB
C
Raw Normal View History

2015-11-29 10:30:52 +01:00
#ifndef __main_h
#define __main_h
#ifndef CONFIG
#define CONFIG "config.h"
#endif // CONFIG
#include CONFIG
#define __T(x) #x
#define _T(x) __T(x)
extern char *fn_log;
#include "types.h"
//int main(int argc, CARGV);
extern void cleanup();
int newmain();
#if MULTI_CALL_BINARY < 1
#define server_main main
#else
int server_main(int argc, CARGV argv);
#endif
#ifndef SA_NOCLDWAIT // required for Cygwin
#define SA_NOCLDWAIT 0
#endif
#ifndef NO_INI_FILE
#define INI_PARAM_RANDOMIZATION_LEVEL 1
#define INI_PARAM_LCID 2
#define INI_PARAM_LISTEN 3
#define INI_PARAM_MAX_WORKERS 4
#define INI_PARAM_CONNECTION_TIMEOUT 5
#define INI_PARAM_PID_FILE 6
#define INI_PARAM_LOG_FILE 7
#define INI_PARAM_LOG_VERBOSE 8
#define INI_PARAM_ACTIVATION_INTERVAL 9
#define INI_PARAM_RENEWAL_INTERVAL 10
#define INI_PARAM_DISCONNECT_IMMEDIATELY 11
#define INI_PARAM_UID 12
#define INI_PARAM_GID 13
#define INI_PARAM_PORT 14
#define INI_PARAM_RPC_NDR64 15
#define INI_PARAM_RPC_BTFN 16
2016-06-06 04:36:00 +02:00
#define INI_PARAM_FREEBIND 17
2016-08-02 16:39:39 +02:00
#define INI_PARAM_PUBLIC_IP_PROTECTION_LEVEL 18
#define INI_PARAM_LOG_DATE_AND_TIME 19
2016-09-04 16:03:54 +02:00
#define INI_PARAM_WINDOWS 20
#define INI_PARAM_OFFICE2010 21
#define INI_PARAM_OFFICE2013 22
#define INI_PARAM_OFFICE2016 23
2016-10-24 15:32:24 +02:00
#define INI_PARAM_WHITELISTING_LEVEL 24
#define INI_PARAM_CHECK_CLIENT_TIME 25
2016-10-31 13:59:15 +01:00
#define INI_PARAM_MAINTAIN_CLIENTS 26
#define INI_PARAM_START_EMPTY 27
2015-11-29 10:30:52 +01:00
#define INI_FILE_PASS_1 1
#define INI_FILE_PASS_2 2
typedef struct
{
const char* const Name;
uint_fast8_t Id;
} IniFileParameter_t, *PIniFileParameter_t;
#endif // NO_INI_FILE
#endif // __main_h