xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

FreeLibrary()

Releases a dynamically loaded external DLL from memory.

Syntax

FreeLibrary( <nDllHandle> ) --> lSuccess

Arguments

<nDllHandle>
This is a numeric handle of the DLL to release as returned from LoadLibrary().

Return

The function returns a logical value inidcating a successful operation.

Description

Function FreeLibrary() releases a DLL previously loaded with LoadLibrary() from memory. Internally, the function decrements the load counter of the DLL with the handle <nDllHandle> to signal the operating system that the DLL is no longer required by the xHarbour application. Whether or not the DLL is actually removed from memory is controlled by the operating system, since the same DLL could be in use by multiple applications.

Info

See also:DllCall(), LibFree(), LoadLibrary()
Category: DLL functions , xHarbour extensions
Source:rtl\dllcall.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe