Explorer folder views
Posted on 2003-11-24
I've been trying to figure this one out for a bit & I'm stumped. What I need to do is write a VB6 program that will set windows explorer's default view.
For example: If the user were to select View | Details & then go into Tools | Folder Options | Views & click on "Like Current Folder" Everything should then be displayed in the Detailed format.
I need to write a program that will do that for the user.
I've managed to find IShellView::SaveViewState(void) to save the settings for 1 folder, but I can't parse every folder on every drive. I need to find out what Windows does when "Like Current Folder" is clicked & call it myself. I suspect this is in Shell32.dll but I haven't found it yet.
The only other useful info I can pass along is the FOLDERVIEWMODE enum contains the folder views.
I'm not looking for complete code, a snippet of what to declair & an example of how to call it will do nicely. The ultimate goal is to set the folder views to "Details" for anyone running the program.
Thanks in advance & Cheers!