Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 21224, Dynamic Linking of DLL

by Al Gun Email: Anonymous


IsApi32FuncExists dynamically link a DLL and check the function is exists in that library.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 2.0  to 6.0 1264 downloads
Copyright: No significant restrictions


Size: 1,343 bytes
Updated on Sun, 14 Dec 2003 03:13:57 GMT
Originally uploaded on Sun, 14 Dec 2003 03:12:14 GMT
SHA1 Hash: 052AD0A98600CBBD76317E1EB7538368EFA803BB
MD5 Hash: 6E47D18DB4D5DD25783F8DF8998C9596

    Explore the files in this upload

Description
IsApi32FuncExists dynamically links a DLL and checks that function is exists in that library. If it is, then calls that function and assigns to a pointer variable

function IsApi32FuncExists(const LibFileName, ApiFuncName: string;
var Api32Func: TFarProc): BOOL;

Parameters Meaning
--------- --------
LibFileName Library file name eg. 'KERNEL32.DLL', or a const
ApiFuncName API function name in DLL eg 'CopyFileExA',or const
Api32Func API function callback function eg. @FCopyFileEx

usage:
if IsApi32FuncExists('KERNEL32.DLL','CopyFileExA',@FCopyFileEx) then
.
.
else
.
.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04