Why Develop a Service?

[Previous] [Next]

When designing your server application, you can implement it as a simple Windows executable in the same way you would implement any application. However, Windows supports a special type of application named a service. A service is a normal Windows executable application that contains additional infrastructure. This additional infrastructure allows the executable application to be controlled and monitored using the Service Control Manager (a component built into every machine running Windows).

The SCM allows an administrator to start, stop, pause, and continue a service executable locally or remotely. The SCM also monitors the service and can automatically restart it or reboot the machine if the service terminates unexpectedly. All server applications that ship with Windows are implemented as services. The MMC provides a Services snap-in that allows an administrator to control all the installed services by using a common interface.

For all these reasons, I strongly suggest that you include the additional infrastructure code in your application to turn it into a service. The details of how to do this are described in Chapter 3 of this book. The standard interface that allows you to control the SCM is described in Chapter 4.

NOTE
To be eligible for the Microsoft BackOffice Logo program, your server application must be implemented as a Windows service.



Programming Server-Side Applications for Microsoft Windows 2000
Programming Server-Side Applications for Microsoft Windows 2000 (Microsoft Programming)
ISBN: 0735607532
EAN: 2147483647
Year: 2000
Pages: 126

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