question about CreateFile and FILE_FLAG_WRITE_THROUGH

Joined
Dec 5, 2006
Messages
13
Reaction score
0
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


 
Back
Top