[DllImport("wininet.dll", SetLastError=true, CharSet=Charset.Auto)]
static extern bool FtpPutFile(IntPtr hConnect, string lpszLocalFile, string lpszNewRemoteFile, int dwFlags, IntPtr dwContext);
// dwFlags
Use one of these values to control the transfer type:
const int FTP_TRANSFER_TYPE_UNKNOWN = 0x00000000; // Defaults to FTP_TRANSFER_TYPE_BINARY
const int FTP_TRANSFER_TYPE_ASCII = 0x00000001;
const int FTP_TRANSFER_TYPE_BINARY = 0x00000002;
Use one or more of these flags to control file caching:
const int INTERNET_FLAG_HYPERLINK = 0x00000400;
const int INTERNET_FLAG_NEED_FILE = 0x00000010;
const int INTERNET_FLAG_RELOAD = 0x80000000;
const int INTERNET_FLAG_RESYNCHRONIZE = 0x00000800;
Declare Function FtpPutFile Lib "wininet.dll" (TODO) As TODO
None.
Call InternetOpen() and InternetConnect() to get a valid hConnect handle.
Please add some!
Please add some!
Do you know one? Please contribute it!