+#else
+ // open the file, although the function says create in its name...
+ HANDLE f = CreateFile(_real_file->name().observe(),
+ GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,
+ NULL_POINTER, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL_POINTER);
+ if (!f) {
+ LOG(a_sprintf("failed to open file %s", _real_file->name().observe()));
+ return FAILURE;
+ }
+ // get current system time in UTC.
+ SYSTEMTIME *st = new SYSTEMTIME;
+ GetSystemTime(st);
+ // convert system time into file time.
+ FILETIME *t = new FILETIME;
+ SystemTimeToFileTime(st, t);
+ // set the file's time.
+ SetFileTime(f, NULL_POINTER, t, t);
+#endif