Microsoft Windows CE 3.0  

Accessing the FTP Protocol

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Wininet.dll and the corresponding Wininet.lib do not include the FTP APIs. To develop FTP applications on a version of the Windows CE OS that does not export FTP APIs from the Wininet.dll, you can use Winsock. FTP APIs are included in the emulation library, Wininetm.lib, and will work in the emulation environment. You can use the FTP APIs with Windows CE version 2.12 which is included in Wininet.dll and Wininet.lib.

The following illustration shows the FTP functions dependent on the FTP session HINTERNETreturned by InternetConnect. The shaded boxes represent functions that return HINTERNETs and the plain boxes represent functions that use the HINTERNETcreated by the function on which they depend.

The FtpCreateDirectory, FtpDeleteFile, FtpGetCurrentDirectory, FtpGetFile, FtpPutFile, FtpRemoveDirectory, FtpRenameFile, and FtpSetCurrentDirectoryfunctions use the HINTERNEThandle created by InternetConnect.

The following illustration shows the two FTP functions that return HINTERNEThandles and the functions dependent on the HINTERNEThandles created by them. The shaded boxes represent functions that return HINTERNEThandles, while the plain boxes represent functions that use the HINTERNEThandle created by the function on which they depend.

InternetFindNextFileis dependent on the HINTERNEThandle created by FtpFindFirstFile, and InternetReadFileuses the HINTERNEThandle created by FtpOpenFile.

Use WinInet to perform the following tasks on an FTP server: