🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: FindFirstFile, FILETIME, and Daylight Savings

#10429
From: Andrue Cope
Date: Thu, 08 Apr 2004 08:15
22 lines
2124 bytes
On Wed, 07 Apr 2004 10:32:00 -0700, Bob Gonder wrote:

> Unless there's a way to determine the file system?
> I don't think I'll stoop to reading the partition table

No need. Just try to create a file with the name "fred.doc:test".

If you succeed it can't be a FAT volume. This is because the name includes
a named stream and FAT doesn't support them.

If you want to try to examine the file system you can open it using the
path "\\.\C:" then read the boot sector. Unfortunately hard though it is to
believe boot sectors on their own are not enough. What /I'd/ do is use the
boot sector to attempt to locate the Master File Table - but then our DLL
can give me that functionality with three calls :)

There probably is a better way to determine file system type if you dig
around enough. It's amazing what you can find in the Windows API once you
start looking.
-- 
Andrue Cope
[Bicester UK]
Technical Details
Message-ID: <dghwirvapbok.10hnthl26dii0$.dlg@40tude.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <1c8170tliot8sh3tp2gfk0v61as6l3uqti@4ax.com> <ak8rt8ua80v1$.zw3u0r86c55l.dlg@40tude.net> <ma6370d3jao3sjn3craod7n6jo4eioraq8@4ax.com> <8ptgrgaex8m6$.lkys4jypdxw.dlg@40tude.net> <bnn57013vvtk88ev5p544m0tq1gbuair87@4ax.com> <oje67018926bqmcugacq6jket2chjq651v@4ax.com> <151n6244bvfwe.1n0u0c4duftm2$.dlg@40tude.net> <0ec8705qs7mvth1hfnc1t6accj39q6m5j6@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2bff2a2748be0347
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-08 01:24:04 PST
From: Andrue Cope <no.spam@spammy.com>
Subject: Re: FindFirstFile, FILETIME, and Daylight Savings
Newsgroups: borland.public.cppbuilder.nativeapi
User-Agent: 40tude_Dialog/2.0.10.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <1c8170tliot8sh3tp2gfk0v61as6l3uqti@4ax.com> <ak8rt8ua80v1$.zw3u0r86c55l.dlg@40tude.net> <ma6370d3jao3sjn3craod7n6jo4eioraq8@4ax.com> <8ptgrgaex8m6$.lkys4jypdxw.dlg@40tude.net> <bnn57013vvtk88ev5p544m0tq1gbuair87@4ax.com> <oje67018926bqmcugacq6jket2chjq651v@4ax.com> <151n6244bvfwe.1n0u0c4duftm2$.dlg@40tude.net> <0ec8705qs7mvth1hfnc1t6accj39q6m5j6@4ax.com>
Date: Thu, 8 Apr 2004 09:15:11 +0100
Message-ID: <dghwirvapbok.10hnthl26dii0$.dlg@40tude.net>
NNTP-Posting-Host: 217.207.223.34
X-Trace: newsgroups.borland.com 1081412162 217.207.223.34 (8 Apr 2004 01:16:02 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail