Ole32CoFreeUnusedLibrariesEx Method

Unloads any DLLs that are no longer in use and whose unload delay has expired.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Ole32.dll", SetLastError = true)]
public static void CoFreeUnusedLibrariesEx(
	uint unloadDelay,
	uint reserved = 0
)

Parameters

unloadDelay  UInt32
The delay in milliseconds between the time that the DLL has stated it can be unloaded until it becomes a candidate to unload.

Setting this parameter to INFINITE (-1) uses the system default delay (10 minutes).

Setting this parameter to 0 forces the unloading of any DLLs without any delay.

reserved  UInt32  (Optional)
This parameter is reserved and must be 0.

Remarks

See Also