Microsoft KB Archive/129975

{|
 * width="100%"|

HOWTO: Register Multiple RPC Server Interfaces

 * }

Q129975

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK) for Windows NT

-

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.

Additional query words:

Keywords : kbnetwork kbAPI kbOSWinNT350 kbRPC kbSDKPlatform kbGrpDSNet

Issue type : kbhowto

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch