As shown in Figure 7.1, the Windows services architecture has five main components. Figure 7.1. The Service Control Manager provides a unified way to control, configure, and access Windows services. These components are as follows: Windows service database This database is a part of the Windows Registry and stores information about all installed services, including the path to the executable file for the service, as well as security and startup settings. Service Control Manager This is a Windows component that maintains the Windows service database and provides a unified way to control, configure, and access these services. Windows service installer A Windows service installer uses the SCM to install, uninstall, and repair a Windows service. Windows services in execution Windows services can be started automatically when Windows starts, or they can be started manually. When a Windows service is started, it continues to run until it receives a Pause message or a Stop message. When a Windows service is paused, the process for the Windows service continues to exist, but the service does not respond to client programs. On the other hand, when a Windows service is stopped, its process is terminated and the memory is reclaimed. Windows Service Controller This Windows component uses the SCM to start, stop, pause, resume, query, install, uninstall, or modify a Windows service. |