🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to effectively modify the last access time of a file

#2105
From: Koen
Date: Thu, 05 Apr 2007 16:27
13 lines
1469 bytes
Mark Jacobs wrote:

> 
> No, he means that the CloseHandle call sets the last access time to
> when the CloseHandle happened! I don't see a way round this!
> Certainly, the other 2 work fine (last modified and last created), but
> last access includes the access required to set the last access date
> and time - a bit of a Catch 22 situation!

No it doesn't. I have tested this before posting. I adjusted the last 
access time, closed the handle, and then looked into the properties of the 
file using MS Windows Explorer. The accesstime was adjusted correctly. Note 
however that when you do this, the accesstime is adjusted again to now.
Technical Details
Message-ID: <Xns9909B18E2651koenhacom@207.105.83.66>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <op.tqajwtlyjr09w3@localhost> <Xns990966E8E657Fkoenhacom@207.105.83.66> <4614eacb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,69dd2e4db7d54b87
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to effectively modify the last access time of a file
From: Koen <koen@ha.com>
References: <op.tqajwtlyjr09w3@localhost> <Xns990966E8E657Fkoenhacom@207.105.83.66> <4614eacb@newsgroups.borland.com>
Message-ID: <Xns9909B18E2651koenhacom@207.105.83.66>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 81.246.59.163
Date: 5 Apr 2007 08:27:20 -0800
X-Trace: newsgroups.borland.com 1175786840 81.246.59.163 (5 Apr 2007 08:27:20 -0800)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail