question

WebDAV-4685 avatar image
3 Votes"
WebDAV-4685 asked WebDAV-4685 commented

How to use the Shell Namespace Extension in packaged apps?

I am creating a cloud storage drive and have successfully implemented it using Windows Cloud Files API. I have packaged it using the Visual Studio packaging project.

However, I have a requirement for certain folders that do not sync with the cloud and traditionally are implemented as Shell Namespace Extensions. Here are my requirements:

  • Create a “virtual” folder that does not exist on the cloud server and does not participate in syncing. It is just a representation of other files that are on my cloud server (or locally), for example, the “Contracts” folder or the “Photos 2021” folder.

  • Such folders must be read-only or have certain limitations. For example, users can not create subfolders and/or files. No files/folders can be dragged inside such folder, and the user must see the appropriate cursor state when dragging over such folder.

  • The user should NOT see the New Folder context menu and other menus for creating new files and folders inside such folders.

I wanted to create a Shell Namespace Extension for such folders but it looks like the current appx/manifest schema does not allow the packaging of Shell Namespace Extensions.


Are there any plans to extend the Package.appxmanifest schema for Shell Namespace Extensions?
Or is there any other approach for creating such read-only folders except Shell Namespace Extensions?

@RitaHan-MSFT @FeiXue-MSFT




windows-api
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Does this blog work for you?

0 Votes 0 ·

This is about the context menu and IExplorerCommand interface. We have successfully implemented it and deployed via package, it is working just fine.

My question is about implementing Shell Namespace Extension folder and IShellFolder interface. As far as I see it is not supported by the appxmanifest schema and packaging. Do you plan to support it? Or is there any replacement for it on Windows 11?


0 Votes 0 ·

1 Answer

XiaopoYang-MSFT avatar image
0 Votes"
XiaopoYang-MSFT answered WebDAV-4685 commented
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Are the Shell Namespace Namespace folder object and IShellFolder interface is completely outdated? Should we invest our time into implementing it?

Do you plan to support it in appxmanifest schema and packaging in future updates?

0 Votes 0 ·