Click to Rate and Give Feedback
MSDN
MSDN Library
COM
COM Fundamentals
Reference
Functions
 CoFreeUnusedLibraries Function

  Switch on low bandwidth view
CoFreeUnusedLibraries Function

Unloads any DLLs that are no longer in use, probably because the DLL no longer has any instantiated COM objects outstanding.

Note  This function is provided for compatibility with 16-bit Windows.

Syntax

C++
void CoFreeUnusedLibraries(void);

Parameters

This function has no parameters.

Return Value

This function does not return a value.

Remarks

Applications can call CoFreeUnusedLibraries periodically to free resources. It is most efficient to call it either at the top of a message loop or in some idle-time task. CoFreeUnusedLibraries internally calls DllCanUnloadNow for DLLs that implement and export that function.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderObjbase.h
LibraryOle32.lib
DLLOle32.dll

See Also

CoFreeAllLibraries
CoFreeLibrary
CoFreeUnusedLibrariesEx
CoLoadLibrary

Send comments about this topic to Microsoft

Build date: 7/9/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker