It might also be worth while to look at :
SHGetFileInfo Function
http://msdn.microsoft.com/
You can pass it a PIDL and the flag SHGFI_DISPLAYNAME and perhaps work from that.
Hello
I'm using C++ Builder an Win.
Does any one know how to get a CSDIL_ from/over a PIDL?
Reason:
By browsing the (Deskop) Folder and showing the contents in a TreeView, I want to be able to exclude CSIDL_ADMINTOOLS, CSIDL_DRIVES, CSIDL_PRINTERS .... or even not from the TreeView.
If you have a nice CSIDL_, it is easy to get a good PIDL.
But what if you hav a PIDL and want to get the appropriate CSIDL_?
Can any one help me please?
Thanks in advance!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
It might also be worth while to look at :
SHGetFileInfo Function
http://msdn.microsoft.com/
You can pass it a PIDL and the flag SHGFI_DISPLAYNAME and perhaps work from that.
To identify the folders on theyr path is the idea tht helps!
I'm using i.e.:
SHGetSpecialFolderLocation
and
GetDisplayName(desktops_Sh
which returns something like
::{21EC2020-3AEA-1069-A2DD
Thats the way to identify it later :-)
Thank a lot for bringing me on the right way! :-)
Business Accounts
Answer for Membership
by: DanRollinsPosted on 2009-07-01 at 21:37:49ID: 24760486
For Windows Vista, you can use: Function oft.com/ en -us/libr ar y/bb7621 87 (VS.85). as px
SHGetKnownFolderIDList
http://msdn.micros
(what they call a "KNOWNFOLDERID" is just a CSIDL_xxxx value)
For earlier OSes:
I've never tried it, but it seems possible that you could get the filesystem path for the items you need to exclude, then compare the filesystem path of the PIDLs that you have.
SHGetSpecialFolderLocation en-us/libr ary/bb7622 03(VS.85). aspx
http://msdn.microsoft.com/
SHGetSpecialFolderPath en-us/libr ary/bb7622 04(VS.85). aspx
http://msdn.microsoft.com/