15.02.2015 Views

C# 4 and .NET 4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

25<br />

Windows services<br />

WhaT ’ s in This ChaPTer<br />

➤<br />

➤<br />

➤<br />

➤<br />

The architecture of a Windows Service<br />

Windows Services installation programs<br />

Windows Services control programs<br />

Troubleshooting Windows Services<br />

Windows Services are programs that can be started automatically at boot time without the need<br />

for anyone to log on to the machine. The following section explains the architecture of Windows<br />

Services. The rest of the chapter shows you how to create, monitor, control, <strong>and</strong> troubleshoot your<br />

Windows Services.<br />

WhaT is a WindoWs serViCe<br />

Windows Services are applications that can be automatically started when the operating system boots.<br />

These applications can run without having an interactive user logged on to the system <strong>and</strong> do some<br />

processing in the background.<br />

For example, on a Windows Server, system networking services should be accessible from the client<br />

without a user logging on to the server. And on the client system, services allow you to get a new<br />

software version from the Internet or to do some fi le cleanup on the local disk.<br />

You can confi gure a Windows Service to run from a specially confi gured user account or from<br />

the system user account — a user account that has even more privileges than that of the system<br />

administrator.<br />

Unless otherwise noted, when we refer to a service, we are referring to a<br />

Windows Service.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!