#include <Service.h>
Public Member Functions | |
| CService (LPCTSTR pServiceName, LPCTSTR pServiceDescription, DWORD dwDesiredAccess=STANDARD_RIGHTS_REQUIRED, DWORD dwServiceType=SERVICE_WIN32_OWN_PROCESS, DWORD dwStartType=SERVICE_AUTO_START, DWORD dwErrorControl=SERVICE_ERROR_NORMAL, LPCTSTR lpBinaryPathName=NULL, LPCTSTR lpLoadOrderGroup=NULL, LPCTSTR lpDependencies=NULL, LPCTSTR lpServiceStartName=NULL, LPCTSTR lpPassword=NULL) | |
| virtual void | Install () |
| virtual void | Uninstall () |
| virtual LPCTSTR | GetServiceName () const |
| int | _tmain (int argc, TCHAR *argv[]) |
| virtual DWORD | ServiceMain (DWORD dwArgc, LPTSTR *lpszArgv)=0 |
| virtual void | ServiceHandler (DWORD fdwControl) |
| bool | InDebugMode () |
| void | SetDebugMode (bool bDebugFlag) |
| bool | InInteractiveMode () |
| void | SetInteractiveMode (bool bInteractive) |
| virtual void | Stop () |
| virtual void | Pause () |
| virtual void | Continue () |
| virtual void | Shutdown () |
| virtual void | Interrogate () |
| void | UpdateSCM (DWORD state, DWORD dwCheckPoint=0, DWORD dwWaitHint=1000) |
Public Attributes | |
| SERVICE_STATUS_HANDLE | m_hServiceStatus |
| CEventLog | m_SysLog |
1.3.9.1