Compartir a través de


CeGetFileTime (RAPI) (Windows CE 5.0)

Send Feedback

This function retrieves the date and time that a file was created, last accessed, and last modified.

CeGetFileTime is a remote application programming interface (RAPI), which enables an application running on a desktop computer to make function calls on a Windows CE–based device.

BOOLCeGetFileTime( HANDLEhFile, LPFILETIMElpCreationTime, LPFILETIMElpLastAccessTime, LPFILETIMElpLastWriteTime);

Parameters

  • hFile
    [in] Handle to the files for which to get dates and times. The file handle must have been created with GENERIC_READ access to the file.
  • lpCreationTime
    [out] Pointer to a FILETIME structure to receive the date and time the file was created. This parameter can be NULL if the application does not require this information.
  • lpLastAccessTime
    [out] Pointer to a FILETIME structure to receive the date and time the file was last accessed. The last access time includes the last time the file was written to, read from, or, in the case of executable files, run. This parameter can be NULL if the application does not require this information.
  • lpLastWriteTime
    [out] Pointer to a FILETIME structure to receive the date and time the file was last written to. This parameter can be NULL if the application does not require this information.

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 1.0 and 1.01, use the PegGetFileTime function.

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

OS Versions: Windows CE 2.0 and later.
Header: Rapi.h.
Link Library: Rapi.lib.

See Also

RAPI Functions | CeGetFileSize | CeGetLastError | CeSetFileTime | FILETIME

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.