torservice.h File Reference

#include <QObject>
#include <QProcess>
#include <windows.h>

Go to the source code of this file.

Classes

struct  ServiceFunctions
class  TorService

Defines

#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)


Define Documentation

#define SERVICE_ERROR   8

Definition at line 29 of file torservice.h.

Referenced by TorService::status().

#define TOR_SERVICE_ACCESS   SERVICE_ALL_ACCESS

Definition at line 28 of file torservice.h.

Referenced by TorService::install(), and TorService::openService().

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

Definition at line 26 of file torservice.h.

Referenced by TorService::install().

#define TOR_SERVICE_DISP   "Tor Win32 Service"

Definition at line 25 of file torservice.h.

Referenced by TorService::install().

#define TOR_SERVICE_NAME   "tor"

Definition at line 24 of file torservice.h.

Referenced by TorService::install(), and TorService::openService().


Typedef Documentation

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

Definition at line 34 of file torservice.h.

typedef BOOL(WINAPI * CloseServiceHandle_fn)(SC_HANDLE hSCObject)

Definition at line 38 of file torservice.h.

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

Definition at line 40 of file torservice.h.

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 44 of file torservice.h.

typedef BOOL(WINAPI * DeleteService_fn)(SC_HANDLE hService)

Definition at line 58 of file torservice.h.

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

Definition at line 60 of file torservice.h.

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

Definition at line 64 of file torservice.h.

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

Definition at line 68 of file torservice.h.

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

Definition at line 71 of file torservice.h.

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

Definition at line 73 of file torservice.h.


Generated on Wed Nov 26 21:02:42 2008 for Vidalia by  doxygen 1.5.7.1