[Ace-users] [ace-users] How to set timestamp of a file in ACE 5.5.8
Chad Elliott
elliott_c at ociweb.com
Mon Dec 10 08:18:58 CST 2007
Douglas C. Schmidt wrote:
> Hi Chad,
>
>
>> You would use utime(2) on UNIX. However, you can not change the
>> creation time; only the access and modification times.
>>
>
> Does anyone know how to changes these values on Windows, as well?
>
It appears that it is called SetFileTime and apparently, you can change
creation time of a file with it.
BOOL WINAPI SetFileTime(
__in HANDLE /hFile/,
__in_opt const FILETIME* /lpCreationTime/,
__in_opt const FILETIME* /lpLastAccessTime/,
__in_opt const FILETIME* /lpLastWriteTime/
);
>
>> It doesn't appear that there is a wrapper for this in ACE.
>>
>
> Depending on what Windows supports it might not be too hard to add these
> things!
>
I'm sure it would be just a matter of converting the times and return
value.
Chad
> Thanks,
>
> Doug
>
More information about the Ace-users
mailing list