Chapter 36: Windows Services


Overview

Windows Services are programs that can be started automatically at boot-time without the need of anyone logging on to the machine. After reading this chapter, you can modify the server processes from Chapter 29, ".NET Remoting," and Chapter 35, "Accessing the Internet," to be started automatically.

In the following pages, you learn:

  • The architecture of Windows Services; the functionality of a service program, service control program, and service configuration program.

  • How to implement a Windows Service with the classes found in the System.ServiceProcess namespace.

  • Installation programs to configure the Windows Service in the registry.

  • How to write a program to control the Windows Service using the ServiceController class.

  • How to implement event handling.

  • How to add event logging to other application types.

  • How to implement performance monitoring for a Windows Service.

The first section explains the function of a Windows Service. (You can download the code for this chapter from the Wrox Web site at www.wrox.com.)




Professional C# 2005
Pro Visual C++ 2005 for C# Developers
ISBN: 1590596080
EAN: 2147483647
Year: 2005
Pages: 351
Authors: Dean C. Wills

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net