Friday, September 27, 2013

Service Control Manager

SCM is used to load and start drivers (KMD) and services in kernel space.

sc.exe is a utility to define, starts, stop and delete services and drivers.

The corresponding programmatic calls are

  • OpenSCManager - open and obtaina handle to the SCM database. The handle is required for subsequent SCM calls. 
  • CreateService() - defines the services using supplied information including, name, binary path, START type etc. The handle return is required for the StartService call 
  • StartService() - load the driver or services 
  • ControlService() - use to stop the service DeleteService() - remove the driver information from SCM database

No comments: