Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use Of GetProcAddress

Status
Not open for further replies.

cimd

Programmer
Jul 18, 2001
52
ES
How I call Any Function with the return address of GetProcAdress. thankss
 
Hi,

Not exactly understanding....

There is an API call within the Kernel called GetProcAddress


Public Declare Function GetProcAddress Lib "kernel32" _
(ByVal hModule As Long, _
ByVal lpProcName As String) As Long


example:
to get a pointer to the GetDiskFreeSpaceExA API in kernel32

lngPointer = GetProcAddress(GetModuleHandle("kernel32.dll"), "GetDiskFreeSpaceExA")

Is that it?
Phathi. X-)
 
All right, but I want to call a Fununction (for example GetDiskFreeSpaceExA ) without usin the declare statement...
:-V
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top