How To Use RPC Callback Functions (96781)
The information in this article applies to:
- Microsoft Win32 Software Development Kit (SDK) 3.1
- Microsoft Win32 Software Development Kit (SDK) 3.5
- Microsoft Win32 Software Development Kit (SDK) 3.51
- Microsoft Win32 Software Development Kit (SDK) 4.0
This article was previously published under Q96781 SUMMARY
The standard remote procedure call (RPC) model has a server containing one
or more exported function calls, and a client, which calls the server's
exported functions. However, Microsoft's implementation of RPC defines
callbacks as a special interface definition language (IDL) attribute
allowing a server to call a client function.
Callbacks can be used only in the context of a server call. Thus, a server
may call a client's callback function only when the server is performing a
client's remote procedure call (before it returns from processing). For
example:
CLIENT SERVER
------ ------
Client makes RPC call. --->
<--- Server calls callback procedure.
Client returns from callback. --->
<--- Server calls callback procedure.
Client returns from callback. --->
<--- Server returns from original RPC call.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbAPI kbhowto kbnetwork kbRPC KB96781 |
---|
|