FreeLibrary

 

Description

Frees the loaded dynamic-link library (DLL) module and, if necessary, decrements its reference count. When the reference count reaches zero, the module is unloaded from the address space of the calling process and the handle is no longer valid.

Syntax

BOOL FreeLibrary( HMODULE hModule )

Parameters

hModule
[input] A handle to the loaded library module.

Return

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Examples

Remark

See Also

LoadLibrary

header to Included

origin.h

Reference