The RpcMgmtEnableIdleCleanup function closes idle resources, such as network connections, on the client. Connection-oriented protocols set five minutes as the default waiting period to determine whether a resource is idle.
This function is supported by the Windows NT, Windows 95 and Windows 3.x platforms. It is not supported by MS-DOS.
Note RpcMgmtEnableIdleCleanup is a Microsoft extension to the DCE API set.
#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcMgmtEnableIdleCleanup(VOID);
Value | Meaning |
---|---|
RPC_S_OK | Success |
RPC_S_OUT_OF_THREADS | Out of threads |
RPC_S_OUT_OF_RESOURCES | Out of resources |
RPC_S_OUT_OF_MEMORY | Out of memory |
Windows NT: Yes
Windows CE: Unsupported.
Header: Declared in rpcdce.h.
Import Library: Link with rpcrt4.lib.