Read Registry on Windows 7 with VBA Permission -
i have line of code has worked flawlessly years on 50+ pcs (vista & windows 7 32 & 64 bit) in access 2007 , access 2010.
regstr = freturnregkeyvalue(hkey_local_machine, "software\thisapp\app", "activation")
on 1 specific pc (windows 7 64bit) access2010/vba module (32 bit)
the line of code above not see registry key.
when change hkey_local_machine hkey_current_user,it works fine.
regstr = freturnregkeyvalue(hkey_current_user, "software\thisapp\app", "activation")
one possible cause of issues registry virtualization microsoft added windows starting vista. when uac (user account control) enabled in windows, non-privileged users can still "modify" system-wide settings hkey_local_machine registry values, changes "virtualized" user , other users cannot see them.
in case, 1 user may have run application saved settings hkey_local_machine. user able retrieve settings , run application normal, user won't able see hkey_local_machine settings because visible user created them.
Comments
Post a Comment