12.11. Placing an RPC Server in a Service
Chapter 9 describes RPCs and RPC servers. Once you have created and debugged an RPC server, you will often want to place it in a service so that it is always available on the network.
Listings 12.14 through 12.19 demonstrate the files necessary to create an RPC server service. These listings combine the simple service shown in Listing 12.1 with the auto-binding RPC server for SumUp demonstrated in Listings 9.1 through 9.4. You can use the RPC client in Listing 9.5 to test the new service. Use the installation program in Section 12.5 to install the RPC server service in the Services Applet of the Control Panel. See Chapter 9 for a complete description of this process.
Code Listing 12.14. The implementation ...
Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 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.