Article View: borland.public.cppbuilder.nativeapi
Article #17709Re: Change timestamp of a directory
From: Remy Lebeau (TeamB)
Date: Thu, 06 Mar 2003 00:16
Date: Thu, 06 Mar 2003 00:16
23 lines
1885 bytes
1885 bytes
"Helmut Giese" <hgiese@ratiosoft.com> wrote in message
news:3e668598.5536754@forums.borland.com...
> I'm on Win98, but the code should perform the same on
> any platform.
In order to do that, you're going to have to also detect the OS version at
runtime and then execute the appropriate code based on which OS you're
running under. You use the GetVersionEx() function to know which OS you're
currently under, testing the version numbers for known values as documented
by Microsoft. The VCL already calls GetVersionEx() for you at startup and
stores the results in various global variables. In this particular case,
you don't really need to know the exact versions, just which kernel platform
is being used. You can use the Win32Platform variable for that, ie:
if( Win32Platform == VER_PLATFORM_WIN32_NT )
// perform WinNT/2K/NT code
else
// perform Win9x/Me code
Gambit
Technical Details
Message-ID:
<3e66915c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e667f83.3979706@forums.borland.com> <3e668598.5536754@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9cdd532a1dbdad8e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-06 22:16:27 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e667f83.3979706@forums.borland.com> <3e668598.5536754@forums.borland.com> Subject: Re: Change timestamp of a directory Date: Wed, 5 Mar 2003 16:16:52 -0800 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e66915c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1046909276 207.175.226.26 (5 Mar 2003 16:07:56 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail