#include <ServiceManager.h>
Public Member Functions | |
BOOL | Open (DWORD dwDesiredAccess=SC_MANAGER_ALL_ACCESS, LPCTSTR lpszMachineName=NULL) |
Open the SCM with the given access rights. | |
void | Close () |
Close the SCM handle (might be useful for lockers). | |
~CSCManager () | |
Tidy up the SCM handle. | |
SC_HANDLE | GetHandle () const |
Extractor for the encapsulated SC_HANDLE. | |
CEnumServicesStatus * | EnumServicesStatus (DWORD dwServiceType=SERVICE_WIN32, DWORD dwServiceState=SERVICE_STATE_ALL) |
Start enumerating services with the given parameters. | |
CSCService * | CreateService (LPCTSTR lpServiceName, LPCTSTR lpPath, LPCTSTR lpServiceDescription=NULL, DWORD dwDesiredAccess=STANDARD_RIGHTS_REQUIRED, DWORD dwServiceType=SERVICE_WIN32_OWN_PROCESS, DWORD dwStartType=SERVICE_AUTO_START, DWORD dwErrorControl=SERVICE_ERROR_NORMAL, LPCTSTR lpLoadOrderGroup=NULL, LPDWORD lpLoadOrderTag=NULL, LPCTSTR lpDependencies=NULL, LPCTSTR lpAccountName=NULL, LPCTSTR lpPassword=NULL) |
create a service, with lots of parameters | |
CSCService * | OpenService (LPCTSTR lpServiceName, DWORD dwDesiredAccess=SERVICE_ALL_ACCESS) |
Open the service with the given name. |
|
create a service, with lots of parameters
|
|
Start enumerating services with the given parameters.
|
|
Open the SCM with the given access rights.
|
|
Open the service with the given name.
|