Article View: borland.public.cppbuilder.nativeapi
Article #2104Re: How to effectively modify the last access time of a file
From: Ed Mulroy
Date: Thu, 05 Apr 2007 14:21
Date: Thu, 05 Apr 2007 14:21
28 lines
1853 bytes
1853 bytes
Good catch - one more of Microsoft's API "secret codes". . Ed > JF Jolin wrote in message > news:op.tqbd12qajr09w3@localhost... > > Hi Mark > > I'm using BCB 5.5.1 > > Some programs can modify that date. > http://msdn2.microsoft.com/en-us/library/ms724933.aspx > > > For example with Microsoft it is possible to set this parameter to -1 like > > SetFileTime( hFile, &fTimeCreate, &fTimeLastAccess, &fTimeLastWrite ); > > memset(&fTimeLastWrite, 0xFF, sizeof(FILETIME) ); > SetFileTime( hFile, &fTimeCreate, &fTimeLastAccess, &fTimeLastWrite ); > CloseHandle( hFile ); > > So the CloseHandle instruction doesn't alter that time. > > > Another alternative is to modify directly the file system. > But I don't know how ?
Technical Details
Message-ID:
<461505db$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<op.tqajwtlyjr09w3@localhost> <Xns990966E8E657Fkoenhacom@207.105.83.66> <4614eacb@newsgroups.borland.com> <op.tqbd12qajr09w3@localhost>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,69dd2e4db7d54b87 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ed Mulroy" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <op.tqajwtlyjr09w3@localhost> <Xns990966E8E657Fkoenhacom@207.105.83.66> <4614eacb@newsgroups.borland.com> <op.tqbd12qajr09w3@localhost> Subject: Re: How to effectively modify the last access time of a file Date: Thu, 5 Apr 2007 10:21:12 -0400 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 66.57.117.102 Message-ID: <461505db$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1175782875 66.57.117.102 (5 Apr 2007 07:21:15 -0800) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail