Create own virtual ShellFolder (Namespace Extensions for WindowsExplorer)

S

Sascha

Hello,

I'm trying to implement my own ShellFolder. This folder should
represent a virtual folder in the explorer, but the data that will be
listet, should be provided by some webservices.

I found out, that I have to add some Registry-Keys and in the key
HKEY_CLASSES_ROOT\CLSID\{myUID}\InprocServer32 I can set the name of
my dll that implements the IShellFolder.

That looks like that:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}]
@="FOLDER_TEST"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\DefaultIcon]
@="C:\\test\\MyIcon.ico"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\InprocServer32]
@="C:\\test\\MyNamespaceExtension.dll"
"ThreadingModel"="Apartment"
"LoadWithoutCOM"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\ShellFolder]
"Attributes"=hex:00,00,00,00
"WantsFORPARSING"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\MyComputer\NameSpace\{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}]
@="FOLDER_TEST"

Then I build a DLL and register it with regasm. After starteing the
explorer I see the new foldernode in MyComputer but my functions seems
do be ignored.

Has someone done something like this before and can tell me what I've
done wrong.
It would be great if someone has a example of a C# ShellFolder to
provide own data ...

Thanks,
Sascha
 
A

Andre Jonker

Sascha

Have you had any luck with getting the virtual ShellFolder to work? I am interested to hear what you have found.

Thanks,

Andre
Hello,

I'm trying to implement my own ShellFolder. This folder should
represent a virtual folder in the explorer, but the data that will be
listet, should be provided by some webservices.

I found out, that I have to add some Registry-Keys and in the key
HKEY_CLASSES_ROOT\CLSID\{myUID}\InprocServer32 I can set the name of
my dll that implements the IShellFolder.

That looks like that:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}]
@="FOLDER_TEST"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\DefaultIcon]
@="C:\\test\\MyIcon.ico"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\InprocServer32]
@="C:\\test\\MyNamespaceExtension.dll"
"ThreadingModel"="Apartment"
"LoadWithoutCOM"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\ShellFolder]
"Attributes"=hex:00,00,00,00
"WantsFORPARSING"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\MyComputer\NameSpace\{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}]
@="FOLDER_TEST"

Then I build a DLL and register it with regasm. After starteing the
explorer I see the new foldernode in MyComputer but my functions seems
do be ignored.

Has someone done something like this before and can tell me what I've
done wrong.
It would be great if someone has a example of a C# ShellFolder to
provide own data ...

Thanks,
Sascha

Submitted via EggHeadCafe - Software Developer Portal of Choice
Freeze Row Group Header in WPF DataGrid
http://www.eggheadcafe.com/tutorial.../freeze-row-group-header-in-wpf-datagrid.aspx
 
A

Andre Jonker

Sascha

Have you had any luck with getting the virtual ShellFolder to work? I am interested to hear what you have found.

Thanks,

Andre
Hello,

I'm trying to implement my own ShellFolder. This folder should
represent a virtual folder in the explorer, but the data that will be
listet, should be provided by some webservices.

I found out, that I have to add some Registry-Keys and in the key
HKEY_CLASSES_ROOT\CLSID\{myUID}\InprocServer32 I can set the name of
my dll that implements the IShellFolder.

That looks like that:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}]
@="FOLDER_TEST"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\DefaultIcon]
@="C:\\test\\MyIcon.ico"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\InprocServer32]
@="C:\\test\\MyNamespaceExtension.dll"
"ThreadingModel"="Apartment"
"LoadWithoutCOM"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}\ShellFolder]
"Attributes"=hex:00,00,00,00
"WantsFORPARSING"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
\MyComputer\NameSpace\{D4754B5B-0581-4746-8C2E-6A29DB98AF0E}]
@="FOLDER_TEST"

Then I build a DLL and register it with regasm. After starteing the
explorer I see the new foldernode in MyComputer but my functions seems
do be ignored.

Has someone done something like this before and can tell me what I've
done wrong.
It would be great if someone has a example of a C# ShellFolder to
provide own data ...

Thanks,
Sascha
On Wednesday, October 20, 2010 6:45 AM Andre Jonker wrote:
Sascha



Have you had any luck with getting the virtual ShellFolder to work? I am interested to hear what you have found.



Thanks,



Andre
Submitted via EggHeadCafe - Software Developer Portal of Choice
ASP.NET MaskedTextBox Custom Control
http://www.eggheadcafe.com/tutorial...d645/aspnet-maskedtextbox-custom-control.aspx
 
Top