Platform SDK: DLLs, Processes, and Threads

Service Control Programs

A service control program performs the following actions:

These actions require an open handle to the service object. To obtain the handle, the service control program must:

  1. Use the OpenSCManager function to obtain a handle to the SCM database on a specified machine.
  2. Use the OpenService or CreateService function to obtain a handle to the service object.