Microsoft Windows CE 3.0  

CoFreeLibrary

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.

This function frees a library that, when loaded, was specified to be freed explicitly.

void
CoFreeLibrary(
HINSTANCE
hInst
);

Parameters

hInst
[in] Handle to the library module to be freed, as returned by CoLoadLibrary.

Return Values

None.

Remarks

The CoFreeLibraryfunction should be called to free a library that is to be freed explicitly. This is established when the library is loaded with the bAutoFreeparameter of CoLoadLibraryset to FALSE. It is illegal to free a library explicitly when the corresponding CoLoadLibrarycall specifies that it be freed automatically (the bAutoFreeparameter is set to TRUE).

For Windows CE versions 2.10 and later, this function is not supported. Applications should call CoFreeUnusedLibrariesinstead.

Passing into this function any invalid and, under some circumstances, NULL pointers results in unexpected termination of the application.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 2.0 and later Objbase.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CoFreeUnusedLibraries, CoLoadLibrary