Using Win32 functions in Visual FoxPro Image Gallery
Dynamic-Link Library
..msdn
FreeLibrary
GetModuleFileName
GetModuleHandle
GetProcAddress
LoadLibrary
LoadLibraryEx
Code examples:
Exporting DLL icon resources as .ICO files
How to display a user-defined icon in the MessageBox dialog
Loading a string resource from an executable file
Storing registration key in the resources of an executable file
Using LoadLibrary
FreeLibrary
..msdn    Add comment     W32 Constants      Translate this page
The FreeLibrary function decrements the reference count of the loaded dynamic-link library (DLL). When the reference count reaches zero, the module is unmapped from the address space of the calling process and the handle is no longer valid
Code examples:
How to display a user-defined icon in the MessageBox dialog
Loading a string resource from an executable file
Storing registration key in the resources of an executable file
Exporting DLL icon resources as .ICO files
Using LoadLibrary
Declaration:
BOOL FreeLibrary(
  HMODULE hModule   // handle to DLL module
);
FoxPro declaration:
DECLARE INTEGER FreeLibrary IN kernel32;
    INTEGER hLibModule
Parameters:
hModule
[in] Handle to the loaded DLL module. The LoadLibrary or GetModuleHandle function returns this handle.
Return value:
If the function succeeds, the return value is nonzero
My comment:
Each process maintains a reference count for each loaded library module. This reference count is incremented each time LoadLibrary is called and is decremented each time FreeLibrary is called.

A DLL module loaded at process initialization due to load-time dynamic linking has a reference count of one. This count is incremented if the same module is loaded by a call to LoadLibrary.
Word Index links for the FreeLibrary :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-12 12:00:00
Modified: 2003-05-15 15:23:44
Visited in last 7 days: 67
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.16.43)
13 sec.Function: 'WinHttpAddRequestHeaders'
28 sec.Function: 'DrawDibDraw'
41 sec.
Function group: 'Icon'
56 sec.Function: 'CeGetVersionEx'
1.17 min.Function: 'QueryPerformanceCounter'
1.37 min.Function: 'CreateSemaphore'
1.58 min.Function: 'GetQueueStatus'
1.82 min.Function: 'FindFirstUrlCacheGroup'
2.05 min.Function: 'waveInClose'
2.28 min.Function: 'RegCloseKey'
Google
Advertise here!