9.13. Context Handles

There are many situations in which you would like to maintain context information in the RPC server's memory space and then be able to refer to that context from call to call. For example, you might want to build and maintain a linked list on the RPC server using many different calls to the RPC server. If you want all clients to be able to access a single linked list, then you can declare global variables in the server and use appropriate synchronization mechanisms (Chapter 7) so that clients don't collide. However, if you want each client to be able to create and refer to its own linked list, then each client needs its own context on the RPC server.

As another example, say that you would like clients to be able to open ...

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.