Click to See Complete Forum and Search --> : question about CreateFile and FILE_FLAG_WRITE_THROUGH


George3
01-16-2007, 02:21 AM
Hello everyone,


Suppose I have a file created with FILE_ATTRIBUTE_NORMAL attribute. I think it means attribute FILE_FLAG_WRITE_THROUGH is not enabled. Is my understanding correct?

And I think if I do not enable the FILE_FLAG_WRITE_THROUGH attribute, even if flush operation (function call) will not *truly* dump data to disk. Is my understanding also correct?

So, my question is, when will the data be dumped to disk -- only when we close the file?


thanks in advance,
George