Create a shell namespace extension

2019-07-14 08:51发布

问题:

How does acronis create this virtual folders. For example I created a backup of the folder Example located at C:\Example This is how the backup looks:

If I double click on that file then I could navigate to:

if I right click on that folder I will not get the regular menu that I get with directories. If I double click that directory then I will navigate to the content of that folder as:

Note that the content that I am looking at is inside a file not on windows explorer.

I know that if I send VirtualDir.tib to somewone they will not be able to see the same because they do not have acronis true image installed.

How could I be able to do something similar with c# ?


Edit

Sorry I just updated the title. How will I be able to create a chell namespace extension with c#?

回答1:

To answer your question about whether it can be done in C#, the answer is no. As is explicitly stated here, writing shell extensions in managed code is entirely unsupported. This is because shell extension DLLs can be loaded into multiple processes, some of which would already have another version of the CLR loaded.