9.12. Explicit Handles
The previous examples have used either auto-binding or implicit manual binding to bind the RPC client to the RPC server. In auto-binding, the MIDL compiler generates code that lets the client bind to the server automatically. In implicit manual binding, the client code creates the binding to the server, but stores the binding handle in a variable that the MIDL compiler generated using the ACF file. Once the initialization of the binding handle is complete, the client can call RPC functions implicitly.
Auto binding is the easiest to implement. The client code looks exactly like normal code. However, auto binding is slow if the client needs to make a large number of function calls to the RPC server. The client binds to the ...
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.