Implementing a Remoting Server in a Windows Service

So far we've seen simple examples where the remoting server is in a console application or on an MFC GUI application. But for real-life purposes, it's best to put the remoting server in a Windows Service. Basically Windows Services start before the user is logged in; this comes in mighty handy, because remoting servers might usually be run on Network servers on which users typically don't remain logged in except for administrative purposes. In this section we'll see how to write a Windows Service and put a remoting server in it. We'll use the service classes provided by the .NET Framework to write our service. The demo program shows how to write a simple expiration service, where a program can ...

Get Extending MFC Applications with the .NET Framework 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.