Article ID: 157607
Article Last Modified on 10/2/2003
File attributes and flags for the new file. Can be any combination of FILE_ATTRIBUTE_* and INTERNET_FLAG_* file attributes. See CreateFile for further information on FILE_ATTRIBUTE_* attributes, and see InternetOpenUrl for further information on INTERNET_FLAG_* flags.
// A valid FtpGetFile call that always reads from the wire
BOOL result = FtpGetFile(hMyFtpSession, // hFtpSession
_T("ILoveTheInformationSuperhighway.tla"), // lpszRemoteFile
_T("C:\\Temp\\HereItIs.tla"), // lpszNewFile
FALSE, // fFailIfExists
FILE_ATTRIBUTE_NORMAL, // so-called "dwFlagsAndAttributes"
FTP_TRANSFER_TYPE_BINARY | INTERNET_FLAG_RELOAD, // dwFlags
dwMyFtpContext); // dwContext
Similarly, the FtpOpenFile documentation should indicate that the fourth
parameter, dwFlags, can be used to specify any combination of the cache
control flags and one of the FTP_TRANSFER_TYPE_* flags. For example, it is
legal to do the following:
// A valid FtpOpenFile call that always reads from the wire
BOOL result = FtpOpenFile(hMyFtpSession, // hFtpSession
_T("LoneStarReview.doc"), // lpszFileName
GENERIC_READ, // fdwAccess
FTP_TRANSFER_TYPE_BINARY | INTERNET_FLAG_RELOAD, // dwFlags
dwMyFtpContext); // dwContext
Additional query words: cache caching
Keywords: kbdocerr KB157607