FreeLibrary

Top  Previous  Next

Prototype

 

FreeLibrary(intDLLHandle)

 

Description

 

Downloads a library previously saved from memory .

 

Parameters

 

intDLLHandle: DLL Handle .

 

Returned value

 

None

 

Notes

 

None.

 

Example

//It initializes a string variable

Test:='TO BE CONVERTED IN LOWERCASE';

 

//It logs a input string

ApplicationLog('Before: '+Test);

 

//Load library

DLLHandle:=LoadLibarry('USER32.DLL');

if DLLHandle<>0 then

begin

 //Call DLL CharLowerA function

 CallLibrary(DLLHandle,'CharLowerA',Test);

 //Free memory

 FreeLibrary(DLLHandle);

end

else ApplicationLog('Unable to load USER32.DLL!');

 

//It logs output string

ApplicationLog('After: '+Test);