Func _WinINet_FtpFindFirstFile($hInternetConnect, $sSearchFile = "", $iFlags = 0, $hContext = 0)
; Set data/structures up
Local $tFindFileData = DllStructCreate($tagWIN32_FIND_DATA)
; Make DLL call
Local $avResult = DllCall("wininet.dll", _
"ptr", "FtpFindFirstFile" & $WIN32_FTYPE, _
"ptr", $hInternetConnect, _
$WIN32_TSTR, $sSearchFile, _
"ptr", DllStructGetPtr($tFindFileData), _
"dword", $iFlags, _
"ptr", $hContext _
)
; Return response
If @error Or Not $avResult[0] Then Return SetError(1, 0, 0)
Local $avReturn[2] = [$avResult[0], $tFindFileData]
Return $avReturn
EndFunc ;==>_WinINet_FtpFindFirstFile
和这个不一样.. |