OpenVPN
Functions | Variables
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 ()
 
static int CmdStartService (openvpn_service_type type)
 
static int CmdRemoveServices ()
 
int _tmain (int argc, TCHAR *argv[])
 

Variables

openvpn_service_t openvpn_service [_service_max]
 

Function Documentation

◆ _tmain()

int _tmain ( int  argc,
TCHAR *  argv[] 
)

◆ CmdInstallServices()

static int CmdInstallServices ( )
static

Definition at line 57 of file service.c.

References _service_max, GetLastErrorText(), and service.

Referenced by _tmain().

◆ CmdRemoveServices()

static int CmdRemoveServices ( )
static

◆ CmdStartService()

static int CmdStartService ( openvpn_service_type  type)
static

Definition at line 110 of file service.c.

References GetLastErrorText(), and service.

Referenced by _tmain().

◆ ReportStatusToSCMgr()

BOOL ReportStatusToSCMgr ( SERVICE_STATUS_HANDLE  service,
SERVICE_STATUS *  status 
)

Variable Documentation

◆ openvpn_service

openvpn_service_t openvpn_service[_service_max]

Definition at line 18 of file service.c.