CoFreeAllLibraries function (objbase.h)

Frees all the DLLs that have been loaded with the CoLoadLibrary function (called internally by CoGetClassObject), regardless of whether they are currently in use.

Syntax

void CoFreeAllLibraries();

Return value

None

Remarks

To unload libraries, CoFreeAllLibraries uses a list of loaded DLLs for each process that the COM library maintains. The CoUninitialize and OleUninitialize functions call CoFreeAllLibraries internally, so applications usually have no need to call this function directly.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header objbase.h
Library Ole32.lib
DLL Ole32.dll
API set ext-ms-win-com-ole32-l1-1-5 (introduced in Windows 10, version 10.0.15063)

See also

CoFreeLibrary

CoFreeUnusedLibraries

CoFreeUnusedLibrariesEx

CoLoadLibrary