How To Register Multiple RPC Server Interfaces
Article ID: 129975
Article Last Modified on 7/1/2004
APPLIES TO
- Microsoft Win32 Software Development Kit (SDK) for Windows NT
This article was previously published under Q129975
SUMMARY
When registering multiple server interfaces from multiple threads or from
a single thread under the same process, the RpcServerListen() function
should be called only once.
An application process may register two completely separate Remote
Procedure Call (RPC) server interfaces from two separate threads or from a
single thread. However, when doing so, the RpcServerListen() function
should be called only once from any thread.
RPC APIs are called on a per process basis. From the perspective of RPC run
times, a process can register multiple interfaces using one or more
protocol sequences, but must call the RpcServerListen() function only once
from any one thread. Calling the RpcServerListen() function more than once
results in the run time generating an exception called
RPC_S_ALREADY_LISTENING.
Keywords: kbhowto kbapi kbrpc kbnetwork KB129975