Article View: borland.public.cppbuilder.nativeapi
Article #13279Re: Problems with SetFileTime()
From: Ed Mulroy [TeamB]
Date: Sat, 18 Oct 2003 02:21
Date: Sat, 18 Oct 2003 02:21
18 lines
1755 bytes
1755 bytes
I also had occasional problems with the last write time until I started calling FlushFileBuffers immediately before the call to CloseHandle. . Ed > nicolasr wrote in message > news:3f90a297$1@newsgroups.borland.com... > thanks Remy, > I googled for this problem and I seem to remember that > I read the post you refer to. So, it seems like the function > SetFileTime() is practically useless for setting the last > access time. > What I find curious, though, is that Microsoft tells you to > get a handle via CreateFile(), then set the file time and then > close the handle what causes the System to update the file > access date. > I guess I will have to constrain the user to change the last > write and creation date only.
Technical Details
Message-ID:
<3f90a3ae$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f9088b2@newsgroups.borland.com> <3f909867@newsgroups.borland.com> <3f90a297$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,49076709777e4e9f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-17 19:38:59 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f9088b2@newsgroups.borland.com> <3f909867@newsgroups.borland.com> <3f90a297$1@newsgroups.borland.com> Subject: Re: Problems with SetFileTime() Date: Fri, 17 Oct 2003 22:21:33 -0400 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <3f90a3ae$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066443694 24.74.175.102 (17 Oct 2003 19:21:34 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail