Solved

Custom Properties for "virtual folders" in windows explorer

Posted on 1998-07-26
2
405 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
2 Comments
 

Author Comment

by:StefanJo
Comment Utility
Adjusted points to 200
0
 

Accepted Solution

by:
DmitryC earned 200 total points
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now