#include <ServiceManager.h>
Public Member Functions | |
| CSCService (SC_HANDLE hService) | |
| Constructor from an existing service handle.  | |
| ~CSCService () | |
| Tidy up any service handle.  | |
| SC_HANDLE | GetHandle () const | 
| Return the encapsulated service handle.  | |
| BOOL | Control (DWORD dwControl, LPSERVICE_STATUS lpServiceStatus) | 
| Control (start/stop/pause/etc) the service.   | |
| BOOL | Start (DWORD dwNumServiceArgs=0, LPCTSTR *lpServiceArgVectors=NULL) | 
| Start the service.   | |
| BOOL | Stop (LPSERVICE_STATUS lpServiceStatus) | 
| Stop the service.   | |
| BOOL | Delete () | 
| Mark the service for deletion. The service is not actually deleted until all open handles to it have been closed (including this one!).   | |
| BOOL | QueryStatus (LPSERVICE_STATUS lpServiceStatus) | 
| Get the current status of the given service.   | |
| CEnumDependentServices * | EnumDependentServices (DWORD dwServiceState=SERVICE_STATE_ALL) | 
| Enumerate the services that depend on this one.   | |
| operator SC_HANDLE () | |
| SC_HANDLE extraction operator.  | |
      
  | 
  ||||||||||||
| 
 Control (start/stop/pause/etc) the service. 
 
 
  | 
  
      
  | 
  
| 
 Mark the service for deletion. The service is not actually deleted until all open handles to it have been closed (including this one!). 
 
  | 
  
      
  | 
  
| 
 Enumerate the services that depend on this one. 
 
 
  | 
  
      
  | 
  
| 
 Get the current status of the given service. 
 
 
  | 
  
      
  | 
  ||||||||||||
| 
 Start the service. 
 
 
  | 
  
      
  | 
  
| 
 Stop the service. 
 
 
  | 
  
 1.3.9.1