How do I detect whether Gallery (and many other Special Folders!) are enabled or disabled?


tschroeder250

Member
Local time
10:29 AM
Posts
2
OS
Windows 11 Pro 22H2 OS build 22621.4317
Hello all. I am currently running Win11 Pro 22621.4317.

I am writing an app (WPF) and I would like to display a file tree that is visually as close to File Explorer as possible. To that end, I would like to detect which Special Folders are enabled (i.e. visible) in File Explorer.

For this post I am focusing on Gallery, but I am hoping to be able to use the same code for the other Special Folders as well. I found Brink's excellent post on enabling and disabling the Gallery (link) but I don't think that I can reuse the concepts I found there.

Before making any registry edits, Gallery was visible on my system, and I found the following instances of {e88865ea-0e1c-4e20-9aa6-edcd0212c87c} in the registry (along with what I thought may be important KVPs):
  • Computer\HKEY_CLASSES_ROOT\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
    • System.IsPinnedToNameSpaceTree = 1
    • SortOrderIndex = 65
  • Computer\HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
    • System.IsPinnedToNameSpaceTree = 1
    • SortOrderIndex = 65
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
    • System.IsPinnedToNameSpaceTree = 1
    • SortOrderIndex = 65
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\WOW6432Node\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
    • System.IsPinnedToNameSpaceTree = 1
    • SortOrderIndex = 65
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
    • (Default) = {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel
    • {e88865ea-0e1c-4e20-9aa6-edcd0212c87c} = 1
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
    • System.IsPinnedToNameSpaceTree = 1
    • SortOrderIndex = 65
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
    • (Default) = {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}
  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel
    • {e88865ea-0e1c-4e20-9aa6-edcd0212c87c} = 1

Does anyone know how to accurately detect whether Gallery is visible or not?

Todd
 
Windows Build/Version
Win11 Pro 22621.4317

My Computer

System One

  • OS
    Windows 11 Pro 22H2 OS build 22621.4317
    Computer type
    PC/Desktop
    CPU
    Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz 3.70 GHz
    Memory
    32.0 GB
    Graphics Card(s)
    Radeon (TM) RX 480 Series (8GB)
    Monitor(s) Displays
    2 x Dell S3222HN
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung SSD 840 EVO 120GB (Games)
    Samsung SSD 840 EVO 500GB (OS)
    ST6000DX000-1H217Z 6 TB (Data)
    ATAPI iHBS112 2 (DVD/CD-ROM drive)
    Keyboard
    Steelseries Apex M400
    Mouse
    Steelseries Rival 300 Black
    Internet Speed
    AT&T Fiber 1 GB (6 ms ping, 937 Mbps down, 938 Mbps up)

Latest Support Threads

Back
Top Bottom