SHBrowseForFolder problem on a locked down computer

SHBrowseForFolder problem on a locked down computer

Post by Uy4gVG9vbG » Fri, 14 Nov 2008 22:35:02


I'm having a problem when using the SHBrowseForFolder API with the
BIF_NEWDIALOGSTYLE flag on a XP computer where a group policy has been set to
stop the user from viewing the C drive.

When the folder browse dialog is displayed the user is presented with an
error indicating that the folder desktop cannot be used. Clicking passed the
error then displays the dialog which functions correctly. The user also sees
the error if they click on the desktop item within the treeview on the dialog.

I can only believe this occurs because the desktop is on the C drive which
the user doesn't have access to. The error doesn't happen if the
BIF_NEWDIALOGSTYLE flag is not used, however I need the dialog to be sizeable
and provide a new folder button.

I hope that someone may have come across this issue and have a fix. Many
thanks for your help.
 
 
 

SHBrowseForFolder problem on a locked down computer

Post by Dean Earle » Sat, 15 Nov 2008 00:02:37


Have you tried specifying another default folder?

--
Dean Earley ( XXXX@XXXXX.COM )
i-Catcher Development Team

iCode Systems

 
 
 

SHBrowseForFolder problem on a locked down computer

Post by G Himang » Sat, 29 Nov 2008 12:45:59

You can use a different rootfolder, but then you will only be able to see it
and its sub-folders. Its not possible to filter out only the c:\ drive. For
that you can use a third party control such as FolderView from Shell
MegaPack at http://www.yqcomputer.com/