by winnet.dll,I successfully logged in when I uploaded to the network disk,(nas) but the upload failed.
I think it may be caused by active mode and passive mode.
Microsoft's use of API upload method, and the use of web post or download get are feeling very cumbersome steps, and slow.
========================
now it's ok for nas
PortMode =true,by INTERNET_FLAG_PORT
========================
Later I used the cuteftppro method.
But this software is charged, which is really a headache.
I think it may be caused by active mode and passive mode.
Microsoft's use of API upload method, and the use of web post or download get are feeling very cumbersome steps, and slow.
========================
now it's ok for nas
PortMode =true,by INTERNET_FLAG_PORT
Code:
Function InterConnection(IP As String, UserName As String _
, PassWord As String, Optional PortMode As Boolean) As Long
Dim i As Long
i = InternetConnect(hOpen, IP, 0, UserName, PassWord, 1, IIf(PortMode, INTERNET_FLAG_PORT, INTERNET_FLAG_PASSIVE), 0)
InterConnection = i
End Function
Later I used the cuteftppro method.
But this software is charged, which is really a headache.