In the .NET Framework, the System.ServiceProcess namespace provides the classes that allow you to implement, install, and control Windows services. The main classes involved in working with Windows service applications are
The ServiceBase Class A class that provides the base-level functionality for a Windows services application.
The ServiceProcessInstaller and ServiceInstaller Classes Classes that enable a Windows services application to be installed using the installation utility installutil.exe.
The ServiceController Class A class that enables a program to connect to a Windows service and perform various operations such as starting, stopping, querying, and so on.
In the following sections, you will learn how to work with these classes as you create, install, and administer a Windows service.