Custom Properties for "virtual folders" in windows explorer
Posted on 1998-07-26
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?