CoFreeLibrary  Y3H7GR

Frees a library that, when loaded, was specified to be freed explicitly.

void CoFreeLibrary(

    HINSTANCE  hInst

//Handle of the library module to be freed

   );

 

 

Parameter

hInst

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

 

Remarks

The CoFreeLibrary function should be called to free a library that is to be freed explicitly. This is established when the library is loaded with the bAutoFree parameter of CoLoadLibrary set to FALSE. It is illegal to free a library explicitly when the corresponding CoLoadLibrary call specifies that it be freed automatically (the bAutoFree parameter is set to TRUE).

See Also

CoFreeAllLibraries, CoFreeUnusedLibraries, CoLoadLibrary