The RpcMgmtIsServerListening function tells whether a server is listening for remote procedure calls.
This function is supported by both 32-bit platforms — Windows NT and Windows 95.
#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcMgmtIsServerListening(
RPC_BINDING_HANDLE Binding
);
An application calls the RpcMgmtIsServerListening routine to determine whether the server specified in the Binding argument is listening for remote procedure calls.
RpcMgmtIsServerListening returns a true value if the server has called the RpcServerListen routine.
Value | Meaning |
---|---|
RPC_S_OK | Server listening for remote procedure calls |
RPC_S_SERVER_NOT_LISTENING | Server not listening for remote procedure calls |
RPC_S_INVALID_BINDING | Invalid binding handle |
RPC_S_WRONG_KIND_OF_BINDING | Wrong kind of binding for operation |
Windows NT: Yes
Windows CE: Unsupported.
Header: Declared in rpcdce.h.
Import Library: Link with rpcrt4.lib.
RpcEpResolveBinding, RpcServerListen