Hi,
I need to reset file creation and read it immediately. I have written the code as shown below
if (SetFileTime(hfile, &fts, (LPFILETIME) NULL, (LPFILETIME) NULL))
FlushFileBuffers (hfile);
if (GetFileTime(hfile,&ftg, (LPFILETIME) NULL, (LPFILETIME) NULL))
Now both this fts and ftg should be same. MSDN is giving remarks saying that across all file systems behavior may not be the same.
Please help in creating this code which should work from windows 98 to windows vista.