BUG: Incorrect File Time Returned by FindFirstFile and FindNextFile APIs (308394)
The information in this article applies to:
- Microsoft Windows CE Operating System, Versions 2.12
- Microsoft Windows CE Operating System, Versions 2.11
- Microsoft Windows CE Operating System, Versions 2.0
- Microsoft Windows CE Operating System, Versions 1.0
- Microsoft Windows CE Operating System, Versions 3.0
This article was previously published under Q308394 SYMPTOMS
When you call FindFirstFile and FindNextFile for a file in the object store, the ftCreationTime, ftLastAccessTime, and ftLastWriteTime members of the WIN32_FIND_DATA structure will always return the same values. If the file is modified, this will change all times to the modified time. For files on other storage, such as compact flash cards, ftLastAccessTime and ftLastWriteTime may behave differently.
CAUSE
Files in the object store only save the last write time, therefore only the ftLastWriteTime member of WIN32_FIND_DATA is valid. The operating system incorrectly puts this value in the unsupported members instead of setting them to "0".
For other file systems, these fields may or may not be supported. If they are not supported they should also return 0, otherwise they should return appropriate time stamps.
RESOLUTION
Ignore the ftCreationTime and ftLastAccessTime members of WIN32_FIND_DATA when you reference files in the object store.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/27/2004 |
---|
Keywords: | kbbug kbnofix KB308394 |
---|
|