🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problems with SetFileTime()

#13283
From: Remy Lebeau (TeamB)
Date: Sat, 18 Oct 2003 02:35
26 lines
1882 bytes
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message
news:3f90a297$1@newsgroups.borland.com...

> I googled for this problem and I seem to remember
> that I read the post you refer to.

I referred to a page that listed many postings, not a specific one.

> So, it seems like the function SetFileTime() is practically
> useless for setting the last access time.

If you read the other postings in that search, you will see that many of
them who experience the same symptoms as you turned out that something else
external to their code was accessing the files and resetting the timestamps
separately.

> 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.

Under normal circumstances, that does work, yes.


Gambit
Technical Details
Message-ID: <3f90a654$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-mail
References: <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:39:00 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
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 19:35:01 -0700
Lines: 28
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: 67.22.137.75
Message-ID: <3f90a654$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066444372 67.22.137.75 (17 Oct 2003 19:32:52 -0700)
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