Oct 2, 2001 #1 cimd Programmer Jul 18, 2001 52 ES How I call Any Function with the return address of GetProcAdress. thankss
Oct 2, 2001 #2 Phathi Programmer Aug 10, 2001 60 ZA 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-) Upvote 0 Downvote
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-)
Oct 2, 2001 Thread starter #3 cimd Programmer Jul 18, 2001 52 ES All right, but I want to call a Fununction (for example GetDiskFreeSpaceExA ) without usin the declare statement... :-V Upvote 0 Downvote
All right, but I want to call a Fununction (for example GetDiskFreeSpaceExA ) without usin the declare statement... :-V
Oct 3, 2001 #4 Phathi Programmer Aug 10, 2001 60 ZA Okay, This might help follow the white rabbit http://www.freevbcode.com/code/APIByName.zip (Source Code) then you can make a call like Code: x = CallApiByName("kernel32", "GetProcAddress", hwnd, VarPtr(s(0))) Ciao Phathi. :~/ Upvote 0 Downvote
Okay, This might help follow the white rabbit http://www.freevbcode.com/code/APIByName.zip (Source Code) then you can make a call like Code: x = CallApiByName("kernel32", "GetProcAddress", hwnd, VarPtr(s(0))) Ciao Phathi. :~/