Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 2.55 KB

nf-objbase-cofreelibrary.md

File metadata and controls

81 lines (61 loc) · 2.55 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name req.apiset
NF:objbase.CoFreeLibrary
CoFreeLibrary function (objbase.h)
Frees a library that, when loaded, was specified to be freed explicitly.
CoFreeLibrary
CoFreeLibrary function [COM]
_com_CoFreeLibrary
com.cofreelibrary
objbase/CoFreeLibrary
com\cofreelibrary.htm
com
3959e7d9-6220-474e-8f85-76f7f935727f
12/05/2018
CoFreeLibrary, CoFreeLibrary function [COM], _com_CoFreeLibrary, com.cofreelibrary, objbase/CoFreeLibrary
objbase.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Ole32.lib
Ole32.dll
Windows
19H1
CoFreeLibrary
objbase/CoFreeLibrary
c++
APIRef
kbSyntax
DllExport
Ole32.dll
CoFreeLibrary
ext-ms-win-com-ole32-l1-1-5 (introduced in Windows 10, version 10.0.15063)

CoFreeLibrary function

-description

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

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

-parameters

-param hInst [in]

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

-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

CoFreeUnusedLibrariesEx

CoLoadLibrary