Export (0) Print
Expand All
COM
Expand Minimize

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


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.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CoFreeAllLibraries
CoFreeLibrary
CoFreeUnusedLibrariesEx
CoLoadLibrary

 

 

Community Additions

ADD
Show:
© 2014 Microsoft