RpcMgmtInqComTimeout

The RpcMgmtInqComTimeout function returns the binding-communications timeout value in a binding handle.

#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcMgmtInqComTimeout( 
  RPC_BINDING_HANDLE  Binding,   
  unsigned int *  Timeout        
);
 

Parameters

Binding
Specifies a binding.
Timeout
Returns a pointer to the timeout value from the Binding argument.

Remarks

A client application calls RpcMgmtInqComTimeout to view the timeout value in a server binding handle. The timeout value specifies the relative amount of time that should be spent to establish a binding to the server before giving up. The table below shows the timeout values.

A client calls RpcMgmtSetComTimeout to change the timeout value.

Return Values

Value Meaning
RPC_S_OK Success
RPC_S_INVALID_BINDING Invalid binding handle
RPC_S_WRONG_KIND_OF_BINDING Wrong kind of binding for operation

QuickInfo

  Windows NT: Yes
  Windows CE: Unsupported.
  Header: Declared in rpcdce.h.
  Import Library: Link with rpcrt4.lib.

See Also

RpcMgmtInqStats, RpcMgmtSetComTimeout