I am working on an FTP program. I was wondering how to use FtpSetCurrentDirectroy(). According to MSDN it goes like this:


BOOL WINAPI FtpGetFile(
HINTERNET hConnect,
LPCTSTR lpszRemoteFile,
LPCTSTR lpszNewFile,
BOOL fFailIfExists,
DWORD dwFlagsAndAttributes,
DWORD dwFlags,
DWORD dwContext
);


How do I get the HINTERNET. It is the handle to a valid FTP session. That's basically all I need! Thanks!