The information in this article applies to:
SUMMARY
Early editions of the ActiveX SDK documentation for the Win32 Internet API
FtpGetFile incorrectly specify the fifth parameter dwFlagsAndAttributes.
This parameter should be used only for file attributes. All flags should
instead be specified in the sixth parameter, dwFlags.
MORE INFORMATIONThe ActiveX SDK FtpGetFile documentation defines the fifth parameter dwFlagsAndAttributes as follows: 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.This is incorrect. The fifth parameter should be used only for FILE_ATTRIBUTE_* settings applicable to the file written by FtpGetFile. For INTERNET_FLAG_* flags, these should instead be used in the sixth parameter, dwFlags. For example, FtpGetFile calls that use INTERNET_FLAG_RELOAD to indicate that FTP files should always be received from the wire and not from the cache work incorrectly if this flag is OR'ed into the fifth parameter. Here is a correct example of where to specify the INTERNET_FLAG_RELOAD flag:
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:
© Microsoft Corporation 1999, All Rights Reserved. Additional query words: cache caching
Keywords : kbdocerr kbIE300 kbIE400 kbIE401 AXSDKWinInet |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |