Windows 7 and Windows Server 2008 R2 include the following new and updated programming elements for services.
New Capabilities
A service can register to be started or stopped when a trigger event occurs. This eliminates the need for services to start when the system starts, or for services to poll or actively wait for an event; a service can start when it is needed, instead of starting automatically whether or not there is work to do. For more information, see Service Trigger Events.
Changes the configuration parameters of a service. This function supports managed service accounts and virtual accounts. For more information, see Service Accounts Step-by-Step Guide.
Changes the optional configuration parameters of a service. This function supports new configuration information levels for processor groups and service trigger events.
Creates a service object and adds it to the specified service control manager database. This function supports managed service accounts and virtual accounts. For more information, see Service Accounts Step-by-Step Guide.
An application-defined callback function used with the RegisterServiceCtrlHandlerEx function. This callback function supports new extended control codes for system time changes and service trigger events.
Retrieves the optional configuration parameters of a service. This function supports new configuration information levels for processor groups and service trigger events.
Updates the service control manager's status information for the calling service. This function supports new extended control codes for system time changes and service trigger events.
This module discusses the role of operating system services and how to troubleshoot issues that restrict functionality. This module also discusses resolving issues with signing in to Windows.