🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Getting PIDL for UNC path

#14594
From: Martin Nijhoff
Date: Fri, 08 Aug 2003 13:12
24 lines
1962 bytes
I used IShellFolder::EnumObjects() to list the subfolders of the 'Network
neighborhood' folder and recorded the display name and PIDL of each
subfolder. I did the same for all the workgroups in the 'Entire network'
folder.

In Win98 (among others), network nodes that belong to the same workgroup as
the local machine are listed both under the 'Network neighborhood' folder
and the subfolder of 'Entire network' for the workgroup.

I used IShellFolder::ParseDisplayName() to get the PIDL for a UNC path
(like: \\user\share) but this returns a PIDL that differs from the two PIDLs
(one in 'Network neighborhood' and one in the workgroup folder of 'Entire
network') I recorded with EnumObjects(). The PIDL looks a lot like the PIDL
for 'Entire network', but is not an exact match. In fact,
IShellFolder::CompareIDs() indicates that the two PIDLs refer to different
objects.

Why is there a difference in the PIDLs returned by EnumObjects() and
ParseDisplayName() for the same UNC path?

Also, I would like to get the PIDL for the subfolder of 'Network
neighborhood', but don't know how.

Can anyone help me?
Technical Details
Message-ID: <3f33a15f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!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,cd4e24ee33325537,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-08 06:22:21 PST
From: "Martin Nijhoff" <dont@mail.me>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Getting PIDL for UNC path
Date: Fri, 8 Aug 2003 15:12:38 +0200
Lines: 27
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.9.15
Message-ID: <3f33a15f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060348255 81.68.9.15 (8 Aug 2003 06:10:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail