?
Solved

Custom Properties for "virtual folders" in windows explorer

Posted on 1998-07-26
2
Medium Priority
?
424 Views
Last Modified: 2013-12-03
Experts Exchange,

I am developing an application that includes adding a "virtual folder" to the windows explorer tree at the same level as A:\, C:\, D:\, Control Panel etc…., by using the Shell Library Interfaces.

To this "virtual folder" have I attached a context menu handler, and by registering the default flag SFGAO_HASPROPSHEET for this folder, have I managed to enable the "Properties" menu option in the context menu. To this "properties" menu option is my goal to attach custom designed property pages, including a custom first page.

My problem is that when I select the "properties" menu option I get a message from the system telling me that " the needed methods for the object are not available". I have tried to solve the problem with the "IshellPropSheetExt" interface, but as i understand is this interface only for adding extra property pages to standard file property pages.

So, my questions are how do I implement the interface for custom designed property pages, including a custom first page, attached to a "virtual folder" in the windows explorer? As always is there any good sample that shows this mechanism?

I have noticed that in the file Shlguid.h is there Shell Library Interfaces defined but not documented at all. There is for instance an interface ID called "IID_IPropSheetPage". Is it perhaps this interface i should use, and if so where can i find documents that describe this. Is it perhaps interfaces only known by Microsoft?

Best regards

0
Comment
Question by:StefanJo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:StefanJo
ID: 1411064
Adjusted points to 200
0
 

Accepted Solution

by:
DmitryC earned 400 total points
ID: 1411065
Hi,

In case when namespace extension (AKA virtual folder) has got SFGAO_HASPROPSHEET bit set, shell looks for IPropSheetExt CLSID's in the following location:
HKEY_CLASSES_ROOT\CLSID\{your virtual folder CLSID}\ShellEx\PropertySheetHandlers\{your propsheetext CLSID}

It asks to create instance of {your propsheetext CLSID} with IShellExtInit interface. After the Initialize call succeeds it QueryInterfase's it for IPropSheetExt.

Also, try to look at your IContextMenu's InvokeCommand calls. It is possible that shell will call it with "properties" verb and ask to display PropertySheet dialog by yourself.

My extension is rooted from Desktop and I tried to put it into My Computer (as you did) also - it works fine.

Regards,
Dima
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question