Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function retrieves the date and time that a file was created, last accessed, and last modified. CeGetFileTimeis a remote application interface (RAPI), which enables an application running on a desktop computer to make function calls on a Windows CE–based device.
BOOL CeGetFileTime( HANDLE hFile , LPFILETIME lpCreationTime , LPFILETIME lpLastAccessTime , LPFILETIME lpLastWriteTime );
Parameters
Return Values
Nonzero indicates success. Zero indicates failure. To get extended error information, call CeGetLastError.
Remarks
The FAT and NTFS file systems support the file creation, last access, and last write time values.
When working with RAPI for Windows CE versions 1.0 and 1.01, use the PegGetFileTimefunction.
For more information about using RAPI functions, see Invoking Functions from a Desktop Computer.
The precision of the time for a file in a FAT file system is one second. The time precision for files in other file systems, such as those connected through a network or installed on a peripheral device, depends on the file system but may also be limited by the remote device.
Requirements
Runs On | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.0 and later | Rapi.h |
See Also
CeGetFileSize, CeGetLastError, CeSetFileTime, FILETIME