Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function frees all the DLLs that have been loaded with the CoLoadLibraryfunction (called internally by CoGetClassObject), regardless of whether they are currently in use. This function is usually not called directly, because CoUninitializecalls it internally.

Syntax

void CoFreeAllLibraries( );

Parameters

None.

Return Value

S_OK

Success.

Remarks

To unload libraries, CoFreeAllLibrariesuses a list of loaded DLLs for each process that the COM library maintains. The CoUninitializefunction calls CoFreeAllLibrariesinternally, so OLE applications usually have no need to call this function directly.

To determine whether the platform supports this function, see Determining Supported COM APIs.

Requirements

Header objbase.h
Library ole32.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also