Article View: borland.public.cppbuilder.nativeapi
Article #2244How to effectively modify the last access time of a file
From: JF Jolin
Date: Thu, 05 Apr 2007 03:27
Date: Thu, 05 Apr 2007 03:27
16 lines
1273 bytes
1273 bytes
Here is the scenario: hFile = CreateFile( lpszFileName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL ); SetFileTime( hFile, &fTimeCreate, &fTimeLastAccess, &fTimeLastWrite ); CloseHandle( hFile ); Whatever time is specified in fTimeLastAccess, that will be overwritten when CloseHandle instruction will be executed. __ JF Jolin
Technical Details
Message-ID:
<op.tqajwtlyjr09w3@localhost>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,69dd2e4db7d54b87,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 04 Apr 2007 23:27:55 -0400 Subject: How to effectively modify the last access time of a file From: "JF Jolin" <jfj@nospam.com> Content-Type: text/plain; charset=iso-8859-15 MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Content-Transfer-Encoding: Quoted-Printable Message-ID: <op.tqajwtlyjr09w3@localhost> User-Agent: Opera Mail/9.02 (Win32) NNTP-Posting-Host: 66.36.136.94 X-Trace: newsgroups.borland.com 1175743660 66.36.136.94 (4 Apr 2007 20:27:40 -0800) Lines: 16 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail