IOfflineFilesFileSysInfo::GetTimes method

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

copy [in]

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.

pftCreationTime [out]

Receives a pointer to a FILETIME structure containing the item's creation time.

pftLastWriteTime [out]

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.

pftChangeTime [out]

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.

pftLastAccessTime [out]

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

CscObj.h

DLL

CscSvc.dll;
CscObj.dll

See also

IOfflineFilesFileSysInfo

 

 

Show:
© 2014 Microsoft