15.02.2015 Views

C# 4 and .NET 4

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SonTenTs<br />

ChaPTer 25: WindoWs serViCes 667<br />

What is a Windows service 667<br />

Windows services architecture 668<br />

Service Program 668<br />

Service Control Program 670<br />

Service Configuration Program 670<br />

Classes for Windows Services 670<br />

Creating a Windows service Program 670<br />

Creating Core Functionality for the Service 671<br />

QuoteClient Example 673<br />

Windows Service Program 675<br />

Threading <strong>and</strong> Services 679<br />

Service Installation 679<br />

Installation Program 679<br />

Monitoring <strong>and</strong> Controlling Windows services 683<br />

MMC Snap-in 683<br />

net.exe Utility 684<br />

sc.exe Utility 684<br />

Visual Studio Server Explorer 684<br />

Writing a Custom Service Controller 684<br />

Troubleshooting <strong>and</strong> event logging 692<br />

ummary 693<br />

ChaPTer 26: inTeroP 695<br />

neT <strong>and</strong> CoM 695<br />

Metadata 696<br />

Freeing Memory 696<br />

Interfaces 697<br />

Method Binding 698<br />

Data Types 698<br />

Registration 698<br />

Threading 699<br />

Error H<strong>and</strong>ling 700<br />

Events 701<br />

Marshaling 701<br />

Using a CoM Component from a .neT Client 702<br />

Creating a COM Component 702<br />

Creating a Runtime Callable Wrapper 707<br />

Using the RCW 708<br />

Using the COM Server with Dynamic Language Extensions 709<br />

www.it-ebooks.info<br />

XXiX

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

Saved successfully!

Ooh no, something went wrong!