virtual registry entries.
-
I have a piece of code which checks whether the current user has the permission to access a HKEY_LOCAL_MACHINE registry entry.When i change the access right for the user to limited actually the user should not be allowed to acess the particular registry entry.But vista is allowing where as xp is not allowing.In vista i think it is getting written into the virtual registry entries(since it doesn't allow in the actual registry).How to prevent this? Any help would b of great use. Thanks
-
I have a piece of code which checks whether the current user has the permission to access a HKEY_LOCAL_MACHINE registry entry.When i change the access right for the user to limited actually the user should not be allowed to acess the particular registry entry.But vista is allowing where as xp is not allowing.In vista i think it is getting written into the virtual registry entries(since it doesn't allow in the actual registry).How to prevent this? Any help would b of great use. Thanks
Vista could be using 'registry virtualization' - your program will not be writing to where you think it is. Embed a 'UAC manifest' as a resource in your program to fix this problem.