Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

RpcMgmtEnableIdleCleanup function

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

Syntax


RPC_STATUS RPC_ENTRY RpcMgmtEnableIdleCleanup(void);

Parameters

This function has no parameters.

Return value

ValueMeaning
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.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Rpcdce.h (include Rpc.h)

Library

Rpcrt4.lib

DLL

Rpcrt4.dll

See also

RpcServerUnregisterIf

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.