I tried using your (Nicholas) declaration, but I still have problems.
Here is what I am doing. Please let me know what I am doing wrong:
// The declaration
DllImport("wininet.dll", CharSet = CharSet.Auto)]
public static extern bool FtpCommand(IntPtr hConnect, bool
fExpectResponse, ulong ulFlags, string dwFlags, IntPtr dwContext, ref
IntPtr phFtpCommand);
// Declaration of variables to be used in function
IntPtr hInternetSession = new IntPtr(0); //handle to the Internet
session
IntPtr hInternetConnection = new IntPtr(0); //handle to the Internet
connection
IntPtr hInternetString = new IntPtr(0);
IntPtr hInternetTest = new IntPtr(0);
// hInternetSession and hInternetConnection are
// initialized when a connection to a server
// is made.
// I am not sure what to do with hInternetTest and
// and hInternetString.
// Use of function
FtpDll.FtpCommand(hInternetConnection, false, FTP_TRANSFER_TYPE_ASCII,
"ALLO 4156" , hInternetTest, ref hInternetString))
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com