Retrieves the address of an exported function or variable from the specified module
#include <WinAPISys.au3>
_WinAPI_GetProcAddress ( $hModule, $vName )
$hModule | A handle to the module that contains the function or variable |
$vName | The function or variable name, or the function's ordinal value |
Success: | The address of the exported function or variable |
Failure: | 0, call _WinAPI_GetLastError() to get extended error information |
None.
_WinAPI_GetModuleHandle, _WinAPI_LoadLibrary, _WinAPI_LoadLibraryEx
Suche nach GetProcAddress in der MSDN Bibliothek.
#include <WinAPISys.au3>
; Ermittelt das Handle des geladenen Moduls
Local $hModule = _WinAPI_GetModuleHandle("kernel32.dll")
If $hModule Then
Local $pFunction = _WinAPI_GetProcAddress($hModule, "CreateFiber")
ConsoleWrite("Die Adresse der Funktion lautet " & $pFunction & @CRLF)
; Macht irgendwas
EndIf