CoFreeUnusedLibrariesEx

[DllImport("ole32.dll", SetLastError = true)]
public static extern void CoFreeUnusedLibrariesEx(
   uint dwUnloadDelay,
   uint dwReserved
);

Microsoft documentation: Link

Last updated