Hi,
ich versuche gerade die API Aufrufe der DIFxAPI.all per Autoit zu machen.
Aber das funktioniert irgendwie nicht, ich bekomme als Feedback in $aRes
immer "00000000", egal was ich mache oder übergebe. @error wird nicht
gesetzt. Statt usbser.inf kann man auch eine andere INF eines Treiber Setups
benutzen.
Weiß einer was ich falsch mache?
Es geht erstmal um die Funktion DriverPackageInfPath
http://msdn.microsoft.com/en-us/library/…0(v=vs.85).aspx
DWORD DriverPackageGetPath(
_In_ PCTSTR DriverPackageInfPath,
_Out_opt_ PWSTR pDestInfPath,
_Inout_ DWORD *pNumOfChars
);
#include <array.au3>
#include <Debug.au3>
_DebugSetup("DriverPackage", True)
[/autoit][autoit][/autoit][autoit]Local $DriverPackageInfPath = "usbser.inf"
_DebugReportVar("$DriverPackageInfPath", $DriverPackageInfPath)
Local $pDestInfPath
Local $pNumOfChars
Local $DIFxAPIdll = DllOpen("DIFxAPI.dll")
_DebugReportVar("$DIFxAPIdll", $DIFxAPIdll)
Local $aRes = DllCall($DIFxAPIdll, "DWORD", "DriverPackageGetPath", _
"PCTSTR", $DriverPackageInfPath, _
"PWSTR", $pDestInfPath, _
"PTR", $pNumOfChars)
_DebugReportVar("aRes", Hex($aRes))
DllClose($DIFxAPIdll)
[/autoit]