FreeLibrary

Decrements the reference count of the loaded dynamic-link library.

Library:LibC
Classification:Windows
Service:Library

Syntax

  #include <windows.h> 
   
  BOOL FreeLibrary (
     HMODULE  hModule);
  

Parameters

hModule

(IN) Specifies the handle of the library to free.

Return Values

If successful, returns a nonzero value. Otherwise, returns 0.

Remarks

The FreeLibrary function informs the system that the object referenced by handle is no longer needed by the application.

The FreeLibrary function is not a preferred interface. If possible, use dlerror from dlfcn.h.

See Also