IOfflineFilesFileSysInfo::GetTimes method (cscobj.h)
Retrieves the time values associated with an item.
Syntax
HRESULT GetTimes(
[in] OFFLINEFILES_ITEM_COPY copy,
[out] FILETIME *pftCreationTime,
[out] FILETIME *pftLastWriteTime,
[out] FILETIME *pftChangeTime,
[out] FILETIME *pftLastAccessTime
);
Parameters
[in] copy
An OFFLINEFILES_ITEM_COPY enumeration value identifying which copy (local or remote) to retrieve the time values for.
Windows Vista: This value must be OFFLINEFILES_ITEM_COPY_LOCAL.
[out] pftCreationTime
Receives a pointer to a FILETIME structure containing the item's creation time.
[out] pftLastWriteTime
Receives a pointer to a FILETIME structure containing the item's last-write time. This is the time the item's data was last written to.
[out] pftChangeTime
Receives a pointer to a FILETIME structure containing the item's last-change time. This is the time the item's data or attributes were last changed.
[out] pftLastAccessTime
Receives a pointer to a FILETIME structure containing the item's last-access time. This is the time the item was last read from or written to.
Return value
Returns S_OK if successful, or an error value otherwise.
Remarks
The time values returned directly correspond to the Win32 file time values used by the NTFS file system.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | cscobj.h |
DLL | CscSvc.dll; CscObj.dll |