You can pass INTERNET_FLAG_PASSIVE (0x08000000) in the dwFlags (the 7th parameter) in the call to InternetConnect.
>I think I'm on the right track, but I can't get the ftpCommand function to work... anyone with an piece of code to share?
>
>the problem seems to be that I need to be in passive mode... If I can pass the PASV Command to the FTP server I think I'd be smiling :)
>
--sb--