Hey SyntaxBubble,
In an ftp connection you should have to varibles of HINTERNET.
Here is a bit of code to see what hInstance is:
Code:
BOOL bSuccess;
HINTERNET hIntSession, hFtpSession;
// Open an internet session
hIntSession = ::InternetOpen ("FTP", INTERNET_OPEN_TYPE_PRECONFIG, 0, 0, INTERNET_FLAG_ASYNC);
// form a connection to www.aspect2k.com
hFtpSession = InternetConnect (hIntSession, "www.aspect2k.com",
INTERNET_DEFAULT_FTP_PORT, "anonymous", "[email protected]",
INTERNET_SERVICE_FTP, 0, 0);
bSuccess = FtpSetCurrentDirectory( hFtpSession, "");
InternetCloseHandle (hFtpSession);
InternetCloseHandle (hIntSession);
That sets the current directory to the default root.
TNT