This topic has not yet been rated - Rate this topic

CoFreeLibrary function

Applies to: desktop apps only

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

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

Syntax

void CoFreeLibrary(
  __in  HINSTANCE hInst
);

Parameters

hInst [in]

A handle to the library module to be freed, as returned by the CoLoadLibrary function.

Return value

This function does not return a value.

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).

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

CoFreeAllLibraries
CoFreeUnusedLibraries
CoFreeUnusedLibrariesEx
CoLoadLibrary

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ