🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Drive type?

#10265
From: Remy Lebeau (TeamB)
Date: Tue, 11 May 2004 16:37
23 lines
1979 bytes
"Martin Nijhoff" <dont@mail.me> wrote in message
news:40a0aa39$1@newsgroups.borland.com...

> I haven't tried this, but perhaps you can investigate the item
> ID list of the CD-ROM and DVD-ROM 'folders' and
> distinguish between the different types that way?
>
> For example, the first byte of the ID list (PIDL->mkid.abID[0])
> is 0x31 for a normal folder, 0x41 for a workgroup or domain,
> 0x42 for a network node, 0x47 for the 'Network neighborhood' folder, etc.

You can't rely on that.  You should never try to interpret the contents of
an ITEMIDLIST in any way.  The whole point of an ITEMIDLIST is that its
contents are object-specific, and ITEMIDLIST is specifically designed in
such a way that the contents only have any meaning to the object that
creates them, and that no other object has to have any knowledge of the
contents in order to identify another object.  The contents of an ITEMIDLIST
can change at any time, so you should always go through "official channels"
to query an object for its information.


Gambit
Technical Details
Message-ID: <40a102a0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4061b302$1@newsgroups.borland.com> <40a0aa39$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,5f423b6fa1827404
X-Google-Attributes: gid10cc67,public
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4061b302$1@newsgroups.borland.com> <40a0aa39$1@newsgroups.borland.com>
Subject: Re: Drive type?
Date: Tue, 11 May 2004 09:37:48 -0700
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <40a102a0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084293792 67.22.138.253 (11 May 2004 09:43:12 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail