Can any program write to any part of the Windows registry? Are there permissions and mechanisms to prevent that happening?
If I have a program that writes a key-value to the registry, can I disallow any other program from modifying the key-value?
I am using Windows Mobile 6, but this can also be a general Windows question.
The Windows registry, at least on NT-based systems, supports access control just like most other objects (files, etc.). As such, you can set the appropriate ACLs on registry keys as well as values to restrict access.
I am pretty sure that this functionality is not present on Windows Mobile, but it is on Windows NT, XP, 2003, Vista, Win7 etc.
See: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724878%28v=vs.85%29.aspx