DllFree

This function frees a Dll that was loaded via the DllLoad function.

Syntax:

DllFree(dllhandle)

Parameters:

(s) dllhandle handle of the Dll to be freed.

Returns:

(i) always 0.

 

Use this function to free Dll’s that were loaded with the DllLoad function. Failure to free such Dlls will use up system resources.

 

Example:


a0="Hello Dolly"
dllhandle=DllLoad(StrCat(DirWindows(1),"USER32.DLL"))
a1=DllCall(dllhandle, lpstr:"CharUpperA", lpstr:a0)
DllFree(dllhandle)
Message(a0,a1)
See Also:

Binary Operations, DllCall, DllCallbackCreate, DllCallbackDestroy, DllCall Additional information, DllLoad