0

On the tree view of my File Explorer (formerly Windows Explorer) on Windows 10... I have a number of folders at the root... in my case this includes "Quick access", "DropBox", "OneDrive", "SharePoint", "This PC", and "Network".

Is there a KnownFolder that contains these things... or some way to get a list of folders that would match what comes up on the left of the File Explorer?

Brian Rice
  • 3,107
  • 1
  • 35
  • 53
  • There are also some GUIDs representing some "missing" KnownFolders like My Music – Ňɏssa Pøngjǣrdenlarp Sep 26 '18 at 23:10
  • https://social.msdn.microsoft.com/Forums/vstudio/en-US/98d15984-12d9-47d1-a14d-6e887bf88333/how-to-get-quick-access-folder-path-in-windows-10-using-clsid-in-c-wpf-?forum=csharpgeneral – Rufus L Sep 27 '18 at 00:31
  • @RufusL in that article it talks about "shell:::{679f85cb-0220-4080-b29b-5540cc05aab6}"... this just gets you the "This PC" part... good start though. – Brian Rice Sep 27 '18 at 03:21

1 Answers1

0

I don't think there is a known folder for the namespace root used by Explorer, you might have to build the list yourself.

Look for CLSID keys with a System.Is.PinnedToNameSpaceTree DWORD value != 0.

Identifies whether a shell folder is pinned to the navigation pane.

This article indicates that the SFGAO_NONENUMERATED attribute might also be relevant.

Anders
  • 97,548
  • 12
  • 110
  • 164