Skip to content

Latest commit

 

History

History
124 lines (107 loc) · 2.99 KB

nf-rpcdce-rpcmgmtenableidlecleanup.md

File metadata and controls

124 lines (107 loc) · 2.99 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:rpcdce.RpcMgmtEnableIdleCleanup
RpcMgmtEnableIdleCleanup function (rpcdce.h)
The RpcMgmtEnableIdleCleanup function enables RPC to close idle resources, such as network connections, on the client.
RpcMgmtEnableIdleCleanup
RpcMgmtEnableIdleCleanup function [RPC]
_rpc_rpcmgmtenableidlecleanup
rpc.rpcmgmtenableidlecleanup
rpcdce/RpcMgmtEnableIdleCleanup
rpc\rpcmgmtenableidlecleanup.htm
Rpc
f24bf105-2cdb-4efa-b095-8479545fecb5
12/05/2018
RpcMgmtEnableIdleCleanup, RpcMgmtEnableIdleCleanup function [RPC], _rpc_rpcmgmtenableidlecleanup, rpc.rpcmgmtenableidlecleanup, rpcdce/RpcMgmtEnableIdleCleanup
rpcdce.h
Rpc.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Rpcrt4.lib
Rpcrt4.dll
Windows
19H1
RpcMgmtEnableIdleCleanup
rpcdce/RpcMgmtEnableIdleCleanup
c++
APIRef
kbSyntax
DllExport
Rpcrt4.dll
RpcMgmtEnableIdleCleanup

RpcMgmtEnableIdleCleanup function

-description

The RpcMgmtEnableIdleCleanup function enables RPC to close idle resources, such as network connections, on the client.

-returns

Value Meaning
RPC_S_OK
The call succeeded.
RPC_S_OUT_OF_THREADS
Out of threads.
RPC_S_OUT_OF_RESOURCES
Out of resources.
RPC_S_OUT_OF_MEMORY
Out of memory.
 
Note  For a list of valid error codes, see RPC Return Values.
 

-remarks

Note  RpcMgmtEnableIdleCleanup is a Microsoft extension to the OSF-DCE RPC specification.
 
Calling this function only is sufficient. Once called, idle resource cleanup cannot be turned off. In some cases, depending on Windows version and configuration, RPC Runtime may need to create a separate thread in order to perform such cleanup, which is why idle resource cleanup is not always turned on. On Windows XP and later versions of Windows, RPC Runtime is programmed to automatically turn on idle resource cleanup if idle resources reach a certain threshold.

-see-also

RpcServerUnregisterIf