设置文件时间。
语法
HRESULT SetTimes(
  [in] const FILETIME *pftCreation,
  [in] const FILETIME *pftWrite,
  [in] const FILETIME *pftAccess
);
参数
[in] pftCreation
类型: const FILETIME*
指向创建日期和时间(作为 FILETIME 结构)的指针。
[in] pftWrite
类型: const FILETIME*
指向作为 FILETIME 结构的写入日期和时间的指针。
[in] pftAccess
类型: const FILETIME*
指向访问日期和时间(作为 FILETIME 结构)的指针。
返回值
类型: HRESULT
如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | Windows Vista [仅限桌面应用] | 
| 最低受支持的服务器 | Windows Server 2008 [仅限桌面应用] | 
| 目标平台 | Windows | 
| 标头 | shobjidl_core.h (包括 Shobjidl.h) |