Vidalia  0.3.1
Classes | Macros | Typedefs
TorService.h File Reference
#include <QObject>
#include <QProcess>
#include <windows.h>

Go to the source code of this file.

Classes

struct  ServiceFunctions
 
class  TorService
 

Macros

#define TOR_SERVICE_NAME   "tor"
 
#define TOR_SERVICE_DISP   "Tor Win32 Service"
 
#define TOR_SERVICE_DESC   TEXT("Provides an anonymous Internet communication system.")
 
#define TOR_SERVICE_ACCESS   SERVICE_ALL_ACCESS
 
#define SERVICE_ERROR   8
 

Typedefs

typedef BOOL(WINAPI * ChangeServiceConfig2A_fn) (SC_HANDLE hService, DWORD dwInfoLevel, LPVOID lpInfo)
 
typedef BOOL(WINAPI * CloseServiceHandle_fn) (SC_HANDLE hSCObject)
 
typedef BOOL(WINAPI * ControlService_fn) (SC_HANDLE hService, DWORD dwControl, LPSERVICE_STATUS lpServiceStatus)
 
typedef SC_HANDLE(WINAPI * CreateServiceA_fn) (SC_HANDLE hSCManager, LPCTSTR lpServiceName, LPCTSTR lpDisplayName, DWORD dwDesiredAccess, DWORD dwServiceType, DWORD dwStartType, DWORD dwErrorControl, LPCTSTR lpBinaryPathName, LPCTSTR lpLoadOrderGroup, LPDWORD lpdwTagId, LPCTSTR lpDependencies, LPCTSTR lpServiceStartName, LPCTSTR lpPassword)
 
typedef BOOL(WINAPI * DeleteService_fn) (SC_HANDLE hService)
 
typedef SC_HANDLE(WINAPI * OpenSCManagerA_fn) (LPCTSTR lpMachineName, LPCTSTR lpDatabaseName, DWORD dwDesiredAccess)
 
typedef SC_HANDLE(WINAPI * OpenServiceA_fn) (SC_HANDLE hSCManager, LPCTSTR lpServiceName, DWORD dwDesiredAccess)
 
typedef BOOL(WINAPI * QueryServiceStatus_fn) (SC_HANDLE hService, LPSERVICE_STATUS lpServiceStatus)
 
typedef BOOL(WINAPI * SetServiceStatus_fn) (SERVICE_STATUS_HANDLE, LPSERVICE_STATUS)
 
typedef BOOL(WINAPI * StartServiceA_fn) (SC_HANDLE hService, DWORD dwNumServiceArgs, LPCTSTR *lpServiceArgVectors)
 

Macro Definition Documentation

◆ SERVICE_ERROR

#define SERVICE_ERROR   8

Definition at line 28 of file TorService.h.

◆ TOR_SERVICE_ACCESS

#define TOR_SERVICE_ACCESS   SERVICE_ALL_ACCESS

Definition at line 27 of file TorService.h.

◆ TOR_SERVICE_DESC

#define TOR_SERVICE_DESC   TEXT("Provides an anonymous Internet communication system.")

Definition at line 25 of file TorService.h.

◆ TOR_SERVICE_DISP

#define TOR_SERVICE_DISP   "Tor Win32 Service"

Definition at line 24 of file TorService.h.

◆ TOR_SERVICE_NAME

#define TOR_SERVICE_NAME   "tor"

Definition at line 23 of file TorService.h.

Typedef Documentation

◆ ChangeServiceConfig2A_fn

typedef BOOL(WINAPI * ChangeServiceConfig2A_fn) (SC_HANDLE hService, DWORD dwInfoLevel, LPVOID lpInfo)

Definition at line 33 of file TorService.h.

◆ CloseServiceHandle_fn

typedef BOOL(WINAPI * CloseServiceHandle_fn) (SC_HANDLE hSCObject)

Definition at line 37 of file TorService.h.

◆ ControlService_fn

typedef BOOL(WINAPI * ControlService_fn) (SC_HANDLE hService, DWORD dwControl, LPSERVICE_STATUS lpServiceStatus)

Definition at line 39 of file TorService.h.

◆ CreateServiceA_fn

typedef SC_HANDLE(WINAPI * CreateServiceA_fn) (SC_HANDLE hSCManager, LPCTSTR lpServiceName, LPCTSTR lpDisplayName, DWORD dwDesiredAccess, DWORD dwServiceType, DWORD dwStartType, DWORD dwErrorControl, LPCTSTR lpBinaryPathName, LPCTSTR lpLoadOrderGroup, LPDWORD lpdwTagId, LPCTSTR lpDependencies, LPCTSTR lpServiceStartName, LPCTSTR lpPassword)

Definition at line 43 of file TorService.h.

◆ DeleteService_fn

typedef BOOL(WINAPI * DeleteService_fn) (SC_HANDLE hService)

Definition at line 57 of file TorService.h.

◆ OpenSCManagerA_fn

typedef SC_HANDLE(WINAPI * OpenSCManagerA_fn) (LPCTSTR lpMachineName, LPCTSTR lpDatabaseName, DWORD dwDesiredAccess)

Definition at line 59 of file TorService.h.

◆ OpenServiceA_fn

typedef SC_HANDLE(WINAPI * OpenServiceA_fn) (SC_HANDLE hSCManager, LPCTSTR lpServiceName, DWORD dwDesiredAccess)

Definition at line 63 of file TorService.h.

◆ QueryServiceStatus_fn

typedef BOOL(WINAPI * QueryServiceStatus_fn) (SC_HANDLE hService, LPSERVICE_STATUS lpServiceStatus)

Definition at line 67 of file TorService.h.

◆ SetServiceStatus_fn

typedef BOOL(WINAPI * SetServiceStatus_fn) (SERVICE_STATUS_HANDLE, LPSERVICE_STATUS)

Definition at line 70 of file TorService.h.

◆ StartServiceA_fn

typedef BOOL(WINAPI * StartServiceA_fn) (SC_HANDLE hService, DWORD dwNumServiceArgs, LPCTSTR *lpServiceArgVectors)

Definition at line 72 of file TorService.h.