O'Reilly logo

Introducing Visual C# 2010 by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required