Chapter 10 -- Debugging Windows 2000 Services and DLLs That Load into Services

[Previous] [Next]

Chapter 10

Next to device drivers, the hardest code to debug involves Microsoft Windows 2000 services and dynamic-link libraries (DLLs) that load into services. You might think that because services are really just user-mode processes without a user interface, debugging them would be as easy as debugging a console application. Unfortunately, the story isn't that simple. In fact, so many issues come into play with Windows 2000 services and with DLLs that load into services, especially issues related to Windows 2000 security, that you might find yourself wanting to pull out your hair in frustration trying to work with them. In the early days of Microsoft Windows NT, very few developers wrote services or even knew what they were. In today's world of COM+, Microsoft Internet Information Services (IIS), Microsoft Exchange Server extensions, and Microsoft Cluster Servers (MSCSs), however, many developers must start dealing with services—and debugging them.

In this chapter, I'll provide an overview of the basic characteristics of services. To understand how to debug services themselves and DLLs that load into services, such as Internet Server API (ISAPI) filters and extensions, you need to know how services operate. I'll then explain issues directly related to debugging services. As I walk you through the different stages of debugging a service, I'll point out issues that apply to specific Microsoft service technologies.



Debugging Applications
Debugging Applications for MicrosoftВ® .NET and Microsoft WindowsВ® (Pro-Developer)
ISBN: 0735615365
EAN: 2147483647
Year: 2000
Pages: 122
Authors: John Robbins

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