Funktionreferenz


_WinAPI_GetDllDirectory


Retrieves the application-specific portion of the search path used to locate DLLs for the application

#include <WinAPISys.au3>
_WinAPI_GetDllDirectory ( )

Parameter

None.

Rückgabewert

Success: The search path.
Failure: Empty string, call _WinAPI_GetLastError() to get extended error information.

Bemerkungen

None.

Siehe auch

Suche nach GetDllDirectory in der MSDN Bibliothek.

Beispiel

#include <WinAPIRes.au3>
#include <WinAPISys.au3>

If Not _WinAPI_SetDllDirectory(@ScriptDir & '\Extras') Then
    Exit
EndIf

Local $hModule = _WinAPI_LoadLibraryEx('Resources.dll', $LOAD_LIBRARY_AS_DATAFILE)

ConsoleWrite('Pfad:   ' & _WinAPI_GetDllDirectory() & @CRLF)
ConsoleWrite('Modul: ' & $hModule & @CRLF)

_WinAPI_FreeLibrary($hModule)