🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13278

Re: Problems with SetFileTime()

#13278
From: nicolasr
Date: Sat, 18 Oct 2003 02:16
32 lines
1999 bytes
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.

thanks,
Nick


"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> schrieb im
Newsbeitrag news:3f909867@newsgroups.borland.com...
>
> "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message
> news:3f9088b2@newsgroups.borland.com...
>
> > The problem is that the last access time is always
> > reset to the current date/time after I changed it.
>
>     Searched Groups for win32 setfiletime last access
>     http://tinyurl.com/rdda
>
>
> Gambit
>
>
Technical Details
Message-ID: <3f90a297$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f9088b2@newsgroups.borland.com> <3f909867@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:21:43 PST
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f9088b2@newsgroups.borland.com> <3f909867@newsgroups.borland.com>
Subject: Re: Problems with SetFileTime()
Date: Sat, 18 Oct 2003 04:16:54 +0200
Lines: 34
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.1165
NNTP-Posting-Host: 80.133.160.223
Message-ID: <3f90a297$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066443415 80.133.160.223 (17 Oct 2003 19:16:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!wn14feed!worldnet.att.net!216.166.71.14!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail