Sets the modification, access, and creation times of this property set, if supported by the implementation. Not all implementations support all these time values.
HRESULT SetTimes(
FILETIME const * pctime, //New creation time for the property set
FILETIME const * patime, //New access time for the property set
FILETIME const * pmtime //New modification time for the property
//set
);
This method supports the standard return value E_UNEXPECTED, as well as the following:
Sets the modification, access, and creation times of the current open property set, if supported by the implementation (not all implementations support all these time values). Unsupported timestamps are always reported as zero, enabling the caller to test for support. A call to IPropertyStorage::Stat supplies (among other information) timestamp information.
Notice that this functionality is provided as an IPropertyStorage method on a property storage object that is already open, in contrast to being provided as a method in IPropertySetStorage. Normally, when the SetTimes method is not explicitly called, the access and modification times are updated as a side effect of reading and writing the property set. When SetTimes is used, the latest specified times supersede either default times or time values specified in previous calls to SetTimes.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in objidl.h.
IPropertyStorage::Stat, FILETIME structure