Hi Leute,
ich bekomme einfach folgende Funktion nicht aufgerufen:
Hier der Link zur Funktion und dessen Parameter:
hier
Die DLL die verwendet wird ist wimgapi.dll
Die Funktion soll prüfen, welche Images "gemounted" sind. Leider macht es keinen Sinn die DLL anzubieten, da man erstmal ein Image mounten muss um überhaupt einen Return zu bekommen und das ist mit etwas Aufwand verbunden.
Folgendes habe ich versucht:
[autoit]
Global Const $tagWIM_MOUNT_LIST = "WCHAR WimPath[260];WCHAR MountPath[260];DWORD ImageIndex;BOOL MountedForRW"
; #STRUCTURE# ===================================================================================================================
; Name...........: $tagWIM_MOUNT_INFO_LEVEL1
; Description ...: Contains information retrieved by the _WIM_GetMountedImageList function.
; Fields ........: WimPath - Specifies the full path to the .wim file.
; MountPath - Specifies the full path to the directory where the image is mounted.
; ImageIndex - Specifies the image index within the .wim file specified in WimPath.
; MountFlags - Specifies the current state of the mount point.
; | $WIM_MOUNT_FLAG_MOUNTED - The image is actively mounted.
; | $WIM_MOUNT_FLAG_MOUNTING - The image is in the process of mounting.
; | $WIM_MOUNT_FLAG_REMOUNTABLE - The image is not mounted, but is capable of being remounted.
; | $WIM_MOUNT_FLAG_INVALID - The image mount point is no longer valid.
; | $WIM_MOUNT_FLAG_NO_WIM - TThe WIM file backing the mount point is missing or inaccessible.
; | $WIM_MOUNT_FLAG_NO_MOUNTDIR - The image mount point has been removed or replaced.
; | $WIM_MOUNT_FLAG_MOUNTDIR_REPLACED - The mount point has been replaced with by a different mounted image.
; | $WIM_MOUNT_FLAG_READWRITE - The image has been mounted with read-write access.
; Author ........: Jonathan Holmgren (Homes32)
; Remarks .......:
; ===============================================================================================================================
_Test()
Func _Test()
Local $a[2] = [DllStructCreate($tagWIM_MOUNT_LIST),DllStructCreate($tagWIM_MOUNT_LIST)]
[/autoit][autoit][/autoit][autoit]Local $aReturn1[10] ; array to hold the return data
Local $pWimInfo1 = DllStructCreate($tagWIM_MOUNT_LIST)
Local $test = DllStructGetSize($a)
;~ MsgBox(0, "safdad", $test)
[/autoit][autoit][/autoit][autoit];~ $aResult = DllCall($ghwimgapi, "bool", "WIMGetMountedImages", _
;~ "ptr", DllStructGetPtr($pWimInfo1), _
;~ "dword", DllStructGetSize($pWimInfo1))
;~ If @error Then Return SetError(@error, @extended, 0)
$aResult = DllCall($ghwimgapi, "bool", "WIMGetMountedImages", _
"ptr", DllStructGetPtr($a), _
"ptr", DllStructGetPtr($test))
$aResult1 = DllCall($ghwimgapi, "bool", "WIMGetMountedImages", _
"ptr", DllStructGetPtr($pWimInfo1), _
"ptr", DllStructGetPtr($test))
;~ If @error Then
;~ MsgBox(0, "safdad", @error & " " & @extended)
_ArrayDisplay($aResult)
_ArrayDisplay($aResult1)
MsgBox(0, "safdad", $aResult & " " & $aResult1)
;~ Return $aResult
;~ Return SetError(@error, @extended, 0)
;~ EndIf
EndFunc
[/autoit]Hat jemand eine Idee wie ich das zum laufen bekomme??
Danke schonmal!