[Ace-users] [ace-users] How to set timestamp of a file in ACE 5.5.8

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Mon Dec 10 08:26:40 CST 2007

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.

Yes, indeed.  If the original poster would like to take a shot at
creating the appropriate set of wrapper functions and a regression test
that would be great.  



More information about the Ace-users mailing list