Hi,
hab hier noch nen DLL Call den ich nicht zum Laufen bekomme. Kann bitte wer helfen!
ZitatHRESULT WINAPI DismOpenSession(
_In_ PCWSTR ImagePath,
_In_opt_ PCWSTR WindowsDirectory,
_In_opt_ WCHAR* SystemDrive,
_Out_ DismSession* Session
);
Parameter:
Bisheriger Versuch:
[autoit]DismSession("C:\mounted")
[/autoit][autoit][/autoit][autoit]Func DismSession($sImagePath, $sWindowsDirectory = 0, $sSystemDrive = 0)
Global Const $tagSession = "UINT DismSession"
$dismapi = "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dismapi.dll"
Local $aResult = DllCall($dismapi, "lresult", "DismOpenSession", _
"wstr", $sImagePath, _
"wstr", $sWindowsDirectory, _
"wchar*", $sSystemDrive, _
"ptr", DllStructGetPtr($tagSession) _
)
ConsoleWrite($aResult & @CRLF)
EndFunc
Danke schonmal!