Monday 15 June 2009

LastWriteTime, ChangeTime and GetFileInformationByHandleEx

Starting with Windows Vista, there's a new export available called GetFileInformationByHandleEx. You can use this function to get information about a file, in the format of a FILE_BASIC_INFO struct:
typedef struct _FILE_BASIC_INFO {
LARGE_INTEGER CreationTime;
LARGE_INTEGER LastAccessTime;
LARGE_INTEGER LastWriteTime;
LARGE_INTEGER ChangeTime;
DWORD FileAttributes;
}FILE_BASIC_INFO, *PFILE_BASIC_INFO;
What puzzles me about this struct is the two last members, LastWriteTime and ChangeTime. What is the difference between these two members? Sounds like they specify the same thing to me?

No comments:

Post a Comment