FILE_FLAG_SEQUENTIAL_SCAN

Hello,
could you please use the FILE_FLAG_SEQUENTIAL_SCAN flag when opening/creating local files? When I use SmartFTP to download a big file, the Windows caching subsystem not having this important hint assumes that the portions already written will be accessed again, which means that it tries to keep as much as it can in caches. Working sets are shrinked drastically in favor of the caches and the system performs extremely poorly. In another words - I really can't sensibly work with my computer while downloading a big file over a fast network link

MSDN:
"FILE_FLAG_SEQUENTIAL_SCAN: Indicates that the file is to be accessed sequentially from beginning to end. The system can use this as a hint to optimize file caching. If an application moves the file pointer for random access, optimum caching may not occur; however, correct operation is still guaranteed."

Thank you very much, this is just the only problem I'm having. SmartFTP rocks!

Now I finally got back to the fast campus network and was able to test it and YES, it is definitely better
Than you very much!