Funktionreferenz


_WinAPI_GetProcAddress


Retrieves the address of an exported function or variable from the specified module

#include <WinAPISys.au3>
_WinAPI_GetProcAddress ( $hModule, $vName )

Parameter

$hModule A handle to the module that contains the function or variable
$vName The function or variable name, or the function's ordinal value

Rückgabewert

Success: The address of the exported function or variable
Failure: 0, call _WinAPI_GetLastError() to get extended error information

Bemerkungen

None.

Verwandte Funktionen

_WinAPI_GetModuleHandle, _WinAPI_LoadLibrary, _WinAPI_LoadLibraryEx

Siehe auch

Suche nach GetProcAddress in der MSDN Bibliothek.

Beispiel

#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