Upravit

Sdílet prostřednictvím


Service Configuration Programs

Programmers and system administrators use service configuration programs to modify or query the database of installed services. The database can also be accessed by using the registry functions. However, you should only use the SCM configuration functions, which ensure that the service is properly installed and configured.

The SCM configuration functions require either a handle to an SCManager object or a handle to a service object. To obtain these handles, the service configuration 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.

For more information, see the following topics: