🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to determine folder type from PIDL?

#14449
From: Martin Nijhoff
Date: Mon, 11 Aug 2003 11:51
16 lines
1790 bytes
How can I determine the type of folder a certain PIDL 'points to'?

For folders listed under the 'My computer' folder, I can convert the PIDL to
a path name and pass the path name to GetDriveType() to determine if the
folder is a fixed drive, CD-ROM drive, etc.

I would like to do something similar for the folders listed under 'Network
neighborhood', that is determine whether the folder is a workgroup, network
node, network share, etc.

By examining the first byte of a PIDL, I can determine the type of network
folder (for example, 0x47 for the 'Entire network' folder, 0x41 for a
workgroup, 0x42 for a network node, etc.), but I'm not sure if this is the
right way to go and whether this works on all machines.

Is there a fail-safe way to determine the type of network folder?
Technical Details
Message-ID: <3f3782b0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.superfeed.net!propagator2-maxim!news-in-maxim.spamkiller.net!newsfeed2.kddnet.ad.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f3af26e9e5d9f602,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-11 04:56:13 PST
From: "Martin Nijhoff" <dont@mail.me>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to determine folder type from PIDL?
Date: Mon, 11 Aug 2003 13:51:23 +0200
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 81.68.6.177
Message-ID: <3f3782b0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060602544 81.68.6.177 (11 Aug 2003 04:49:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news-out.superfeed.net!propagator2-maxim!news-in-maxim.spamkiller.net!newsfeed2.kddnet.ad.jp!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail