Windows stores the location of special folders for each user under the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
shared special folders are listed on the same path in HKEY_LOCAL_MACHINE:
HKEY_LOCAL MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
, , , . , , . .