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
| Value | Meaning |
|---|---|
|
The call succeeded. |
|
Out of threads. |
|
Out of resources. |
|
Out of memory. |
Remarks
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 |
|
|
Library |
|
|
DLL |
|
See also