Man kann, aber das Ergebnis ist wahrscheinlich nicht so exakt wie du das gerne hättest. Aus dem
MSDN-Artikel für
GetFileTime():
Zitat von
http://msdn.microsoft.com/en-us/library/ms724320(v=vs.85).aspx:
Not all file systems can record creation and last
access times and not all file systems record them in the same manner. For example, on FAT, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and
access time has a resolution of 1 day (really, the
access date). Therefore, the GetFileTime function may not return the same file time information set using the SetFileTime function.
NTFS delays updates to the last
access time for a file by up to one hour after the last
access. NTFS also permits last
access time updates to be disabled. Last
access time is not updated on NTFS volumes by default.