Windows service management
4.0
Archive contains two files ServiceManager.h, ServiceManager.cpp can be used directly
CServiceManager provides the interface as follows:
BOOL IsActive(); //Check whether the service open
BOOL StopService(SC_HANDLE hService); //Close the services
BOOL StartService(); //Starting service
BOOL ReStartService(); //Reset service
BOOL GetDependentServices(SC_HANDLE hscService, std::vector<MY_SERVICE_STATUSA>& vecServiceStatus