OpenVPN
service.c File Reference
#include "service.h"
#include <windows.h>
#include <stdio.h>
#include <process.h>
Include dependency graph for service.c:

Go to the source code of this file.

Functions

BOOL ReportStatusToSCMgr (SERVICE_STATUS_HANDLE service, SERVICE_STATUS *status)
static int CmdInstallServices (void)
static int CmdStartService (openvpn_service_type type)
static int CmdRemoveServices (void)
int wmain (int argc, WCHAR *argv[])

Variables

openvpn_service_t openvpn_service [_service_max]

Function Documentation

◆ CmdInstallServices()

int CmdInstallServices ( void )
static

Definition at line 56 of file service.c.

References _service_max, GetLastErrorText(), openvpn_service, and service.

Referenced by wmain().

◆ CmdRemoveServices()

int CmdRemoveServices ( void )
static

◆ CmdStartService()

int CmdStartService ( openvpn_service_type type)
static

Definition at line 102 of file service.c.

References GetLastErrorText(), openvpn_service, and service.

Referenced by wmain().

◆ ReportStatusToSCMgr()

BOOL ReportStatusToSCMgr ( SERVICE_STATUS_HANDLE service,
SERVICE_STATUS * status )

Definition at line 22 of file service.c.

References MSG_FLAGS_ERROR, MsgToEventLog(), service, and status.

Referenced by ServiceCtrlInteractive(), and ServiceStartInteractive().

◆ wmain()

Variable Documentation

◆ openvpn_service

openvpn_service_t openvpn_service[_service_max]

Definition at line 18 of file service.c.

Referenced by CmdInstallServices(), CmdRemoveServices(), CmdStartService(), and wmain().