G
Guest
I am using EWF to protect c: partition and writing to an .ini file on d:
which is not protected by ewf. D: is an extended partition. However, when cut
power to the box, the .ini file is either empty or corrupted on startup. The
..ini file is only 100k and is written to every 3 seconds but is closed after
a write. I've tried the following methods without any success:
1) fstream sync write
2) fstream sync write with hardware cache enable turned ON
3) fstream sync write with hardware cache enable turned OFF
4) fopen with commit flag and hardware cache enable turned OFF
5) Win32 Createfile with:
a. Write thru – ON
b. Buffering off
c. hardware cache enable turned OFF
d. (This method being the most direct!)
Is anyone doing the same type of thing? I need to allow power off but
persist some information to .ini file without becoming corrupt.
Thanks for any help.
Tim
which is not protected by ewf. D: is an extended partition. However, when cut
power to the box, the .ini file is either empty or corrupted on startup. The
..ini file is only 100k and is written to every 3 seconds but is closed after
a write. I've tried the following methods without any success:
1) fstream sync write
2) fstream sync write with hardware cache enable turned ON
3) fstream sync write with hardware cache enable turned OFF
4) fopen with commit flag and hardware cache enable turned OFF
5) Win32 Createfile with:
a. Write thru – ON
b. Buffering off
c. hardware cache enable turned OFF
d. (This method being the most direct!)
Is anyone doing the same type of thing? I need to allow power off but
persist some information to .ini file without becoming corrupt.
Thanks for any help.
Tim