OpenVPN
|
Go to the source code of this file.
Functions | |
static DWORD | GetRegString (HKEY key, LPCTSTR value, LPTSTR data, DWORD size, LPCTSTR default_value) |
DWORD | GetOpenvpnSettings (settings_t *s) |
LPCTSTR | GetLastErrorText () |
DWORD | MsgToEventLog (DWORD flags, LPCTSTR format,...) |
wchar_t * | utf8to16 (const char *utf8) |
const wchar_t * | get_win_sys_path (void) |
Variables | |
LPCTSTR | service_instance = TEXT("") |
static wchar_t | win_sys_path [MAX_PATH] |
const wchar_t* get_win_sys_path | ( | void | ) |
Definition at line 265 of file common.c.
References ASSERT, and win_sys_path.
LPCTSTR GetLastErrorText | ( | ) |
Definition at line 184 of file common.c.
Referenced by CmdInstallServices(), CmdRemoveServices(), CmdStartService(), and MsgToEventLog().
DWORD GetOpenvpnSettings | ( | settings_t * | s | ) |
Definition at line 56 of file common.c.
References settings_t::append, settings_t::config_dir, settings_t::exe_path, settings_t::ext_string, GetRegString(), settings_t::log_dir, M_ERR, M_SYSERR, MsgToEventLog(), OVPN_ADMIN_GROUP, settings_t::ovpn_admin_group, PACKAGE_NAME, settings_t::priority, service_instance, and status.
Referenced by ServiceStartInteractive().
|
static |
Definition at line 31 of file common.c.
References M_SYSERR, MsgToEventLog(), PACKAGE_NAME, service_instance, and status.
Referenced by GetOpenvpnSettings().
DWORD MsgToEventLog | ( | DWORD | flags, |
LPCTSTR | format, | ||
... | |||
) |
Definition at line 215 of file common.c.
References APPNAME, GetLastErrorText(), msg, MSG_FLAGS_ERROR, MSG_FLAGS_SYS_CODE, and service_instance.
Referenced by _tmain(), BlockDNSErrHandler(), ConvertInterfaceNameToIndex(), CreateClientPipeInstance(), DeleteWfpBlock(), DuplicateAndMapRing(), ExecCommand(), GetOpenvpnSettings(), GetRegString(), GetStartupData(), GetTokenGroups(), HandleMessage(), HandleRegisterRingBuffers(), IsAuthorizedUser(), IsUserInGroup(), OvpnDuplicateHandle(), RegisterDNS(), ReportStatusToSCMgr(), ReturnError(), RunOpenvpn(), and ServiceStartInteractive().
wchar_t* utf8to16 | ( | const char * | utf8 | ) |
Definition at line 252 of file common.c.
Referenced by HandleDNSConfigMessage(), HandleWINSConfigMessage(), InterfaceLuid(), and SetDNSDomain().
LPCTSTR service_instance = TEXT("") |
Definition at line 27 of file common.c.
Referenced by _tmain(), CreateClientPipeInstance(), GetOpenvpnSettings(), GetRegString(), MsgToEventLog(), and RunOpenvpn().
|
static |
Definition at line 28 of file common.c.
Referenced by get_win_sys_path().