#include <WinService.h>
Inheritance diagram for TWinService:

Public Member Functions | |
| TWinService (const char *serviceName, const char *dispName, DWORD deviceType=SERVICE_DEMAND_START, char *dependencies=NULL, char *descr=NULL) | |
| void | LogEvent (WORD wType, DWORD dwID, const char *pszS1=NULL, const char *pszS2=NULL, const char *pszS3=NULL) |
| bool | IsInstalled () |
| bool | IsInstalled (const char *name) |
| bool | Install () |
| bool | Uninstall () |
| bool | StartService () |
| bool | RunService () |
| bool | StopService () |
| void | SetStatus (DWORD dwState) |
| bool | Initialize () |
| virtual void | Run () |
| virtual bool | OnInit () |
| virtual void | OnStop () |
| virtual void | OnInterrogate () |
| virtual void | OnPause () |
| virtual void | OnContinue () |
| virtual void | OnShutdown () |
| virtual bool | OnUserControl (DWORD dwOpcode) |
| void | showStatus () |
| int | getStatus () |
| bool | isRunning (const char *name) |
| bool | isRunning () |
| ~TWinService (void) | |
Static Public Member Functions | |
| void WINAPI | ServiceMain (DWORD dwArgc, LPTSTR *lpszArgv) |
| void WINAPI | Handler (DWORD dwOpcode) |
Public Attributes | |
| std::string | ServiceDir |
Protected Attributes | |
| SERVICE_STATUS | Status |
| SERVICE_STATUS_HANDLE | hServiceStatus |
| BOOL | IsRunning |
| char | ServiceName [64] |
| int | MajorVersion |
| int | MinorVersion |
| DWORD | ServiceType |
| char * | Dependencies |
| char * | DisplayName |
| char * | descr |
| HANDLE | EventSource |
Static Protected Attributes | |
| TWinService * | ServicePtr = NULL |
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in TClntService. |
|
|
Reimplemented in TClntService, TRelService, and TSrvService. |
|
|
|
|
|
Reimplemented in TClntService, TRelService, and TSrvService. |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1