Chapter 36. Windows Integration

Stand-alone .NET programs can do a lot, but to coexist with other programs, you have to integrate closely with Windows. The .NET Framework Class Library provides a range of convenient classes that you can use to work with some key Windows platform services and features, and in this chapter I'll show you how to use some of them to make your program a first-class Windows citizen. We will start by looking at the Windows event log, move on to gain elevated privileges for our program, and then see how to create, install, and use a Windows service. We finish this chapter by using C# and .NET to access the quintessential Windows feature—the registry. Table 36-1 provides the summary for this chapter.

Table 36-1. Quick Problem/Solution ...

Get Introducing Visual C# 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.