- Need SHBrowseFor Folder Suggestions.
- Posted by JW on May 26th, 2008
I have a program that sets up a base folder from which the program creates a
number of subfolders, i.e. reports, bitmaps, data files, .. etc. that the
program uses to read and write data files to.
I have a dialog that allows the user to change the base to a folder other
than the one I use as the default.
I use SHBrowseForFolder to get the user's selection. This works out fine if
the user is logged in as Administrator, but if the user is logged in other
than Administrator we run into problems. SHBrowseForFolder gives the
limited user visibility to folders that they cannot write to. They can
select the folder but the program cannot set up the base with the folder.
I was hoping to somehow filter out those folders that are unusable to a
particular user, or at least, after the user selects a folder check to see
if they full access to it.
So far I haven't had much luck.
I program in straight C and the win32 API.
I would appreciate any suggestions or alternatives.
Thanks
Jim
- Posted by David Jones on May 26th, 2008
JW <jw@ungodly.net> wrote...
I've never actually done this, but I think you can use IFolderFilter to
selectively filter the directories that are shown. It will probably be
a lot of work, though, especially if you've never worked with COM
before.
http://msdn.microsoft.com/en-us/libr...26(VS.85).aspx
You might also use BFFM_SELCHANGED. From there, you can check the
folder and either show a warning/error or use BFFM_ENABLEOK to disable
OK.
HTH,
David
- Need Batch code for Creating Folder With Increment Name To Create a Incrementle folder inside a Folder (MS-DOS) by kakasay
- Can't open folder...??? any suggestions? (Microsoft Windows) by Almost IT grad. that is stumped
- File problems after moving folder from desktop to folder inside the C drive (Help and Support) by Mark
- Re: [PL] MultiRes Suggestions [was Re: {PL] Small suggestions for Pricelessware.Org] (Software & Applications) by Roger Johansson
- Help esk Suggestions - Best Practices, Tool, ideas, suggestions, etc (Computers & Technology) by JohnNews

