Go to the documentation of this file.
41 #define APPNAME TEXT(PACKAGE "serv")
42 #define SERVICE_DEPENDENCIES TAP_WIN_COMPONENT_ID "\0Dhcp\0\0"
47 #define MSG_FLAGS_ERROR (1<<0)
48 #define MSG_FLAGS_SYS_CODE (1<<1)
50 #define M_SYSERR (MSG_FLAGS_ERROR|MSG_FLAGS_SYS_CODE)
51 #define M_ERR (MSG_FLAGS_ERROR)
68 TCHAR exe_path[MAX_PATH];
69 TCHAR config_dir[MAX_PATH];
71 TCHAR log_dir[MAX_PATH];
88 BOOL
openvpn_swprintf(
wchar_t *
const str,
const size_t size,
const wchar_t *
const format, ...);
BOOL openvpn_vsntprintf(LPTSTR str, size_t size, LPCTSTR format, va_list arglist)
openvpn_service_t interactive_service
VOID WINAPI ServiceStartInteractiveOwn(DWORD argc, LPTSTR *argv)
BOOL openvpn_swprintf(wchar_t *const str, const size_t size, const wchar_t *const format,...)
wchar_t * utf8to16(const char *utf8)
openvpn_service_type type
const wchar_t * get_win_sys_path(void)
LPCTSTR GetLastErrorText()
VOID WINAPI ServiceStartInteractive(DWORD argc, LPTSTR *argv)
BOOL openvpn_sntprintf(LPTSTR str, size_t size, LPCTSTR format,...)
static SERVICE_STATUS_HANDLE service
DWORD GetOpenvpnSettings(settings_t *s)
static SERVICE_STATUS status
BOOL ReportStatusToSCMgr(SERVICE_STATUS_HANDLE service, SERVICE_STATUS *status)
DWORD MsgToEventLog(DWORD flags, LPCTSTR lpszMsg,...)