Category Archive for: Windows Services

Power Events

The Widows Service can react when the power status changes. One example of a power event is when  he system hibernates – all the memory content is written to the disk, so a faster boot is possible. It is also possible to suspend the system to reduce the power consumption, but it can be awakened automatically on…

Read More →

Monitoring and Controlling the Service

To monitor and control services, you can use the Services MMC snap-in that is part of the Computer Management administration tool. Every Windows system also has a command-line utility, net. exe, which allows you to control services. Another command-line utility is sc . exe. This utility has much When you double-click QuoteService, you will get the Properties…

Read More →

Creating a Windows Service

The service that you create will host a quote server. With every request that is made from a client, the quote server returns a random quote from a quote file. The first part of the solution uses three assemblies, one for the client and two for the server. Figure 23-4 gives an overview of the solution. The…

Read More →

System.Service Process Namespace

In the .NET Framework, you can find service classes in the System. Service Process namespace that implement the three parts of a service: ¤ You must inherit from the Service Base class to implement a service. The Service Base class is used to register the service and to answer start and stop requests. ¤ The Service Controller class is…

Read More →

Windows Services

Windows Services are programs that can be started automatically at boot time without the need for anyone to log on to the machine. In this chapter, you learn: The architecture of Windows Services, including the functionality of a service program, a service control program, and a service configuration program. How to implement a Widows Service with the classes…

Read More →

Back to Top