KnownFolders that match File Explorer

192 views Asked by At

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?

1

There are 1 answers

0
Anders On

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.