I am trying to figure out how to access the registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
because I want to figure out where the current user's Favorites directory is located. The problem is, I am running as a service under LocalSystemAccount and HKEY_CURRENT_USER doesn't work. Is there a way to figure out who the current logged-in user is? I tried GetUserName but it returns 'SYSTEM'.