Manipulating File Times

Windows CE 3.0

Windows CE provides the GetFileTime function, which returns the file creation time, the last time that the file was accessed, and the last time that the file was written to. Windows CE creates file times in coordinated universal time (UTC) format, which is known also as Greenwich mean time. Use the FileTimeToLocalFileTime and FileTimeToSystemTime functions to translate the UTC time into the proper time-zone format.

You can set file times also by using the SetFileTime function. Depending on the file system, before using SetFileTime, you might need to gain access to the file by using CreateFile to open the file.


Show: