You are here

Registry question

8 posts / 0 new
Last post
qwertymodo
qwertymodo's picture
Offline
Last seen: 11 years 10 months ago
Joined: 2008-03-17 19:08
Registry question

What portions of the registry are accessible by a standard user to read and write? I know of several sections that aren't but it would be nice to just kind of have a general breakdown of everything that is and isn't.

Bruce Pascoe
Offline
Last seen: 12 years 4 months ago
Joined: 2006-01-15 16:14
Accessible to a standard

Accessible to a standard user? That's easy: Everything under HKEY_CURRENT_USER. Everything else requires administrative privileges.

qwertymodo
qwertymodo's picture
Offline
Last seen: 11 years 10 months ago
Joined: 2008-03-17 19:08
Thanks. I'm working on an

Thanks. I'm working on an app that looks like it writes identical entries to HKCU and HKU, probably default settings in HKU and then each user actually edits their own entries in HKCU. Also, I'm not sure if the HKU entries are just created by the installer (meaning I don't know if a portable version would actually create these values, there are also a TON of other entries that appear to have been created by the installer with no effect on runtime). So basically, if a standard user cannot write these values and IF (still not sure) they actually are default settings that are just superseded by the copy in HKCU, can I just ignore handling these values because the app won't ever be able to create them running as a standard user?

Quamquam omniam nescio, nec nihil scio.

Bruce Pascoe
Offline
Last seen: 12 years 4 months ago
Joined: 2006-01-15 16:14
HKU

is actually the collection of the HKCU keys for each user account on the machine--or more correctly, HKCU is shorthand for the active user's designated HKU subkey. Therefore most of the keys under HKU will probably only be writable by admins and the user they belong to.

This is why it looks like identical keys are being created under HKU and HKCU--you're actually looking at the same physical place in the registry, you just took a different path to get there.

qwertymodo
qwertymodo's picture
Offline
Last seen: 11 years 10 months ago
Joined: 2008-03-17 19:08
Makes sense

Thanks, that makes more sense. Also makes it easier.

Quamquam omniam nescio, nec nihil scio.

qwertymodo
qwertymodo's picture
Offline
Last seen: 11 years 10 months ago
Joined: 2008-03-17 19:08
For the standards here

For the portability standards here, do we need to clean up the entries for DirectX MostRecentApplication keys and MUI cache?

Quamquam omniam nescio, nec nihil scio.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
No

MUICache and system MRU lists get ignored. I think DirectX ones also will be ignored.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

qwertymodo
qwertymodo's picture
Offline
Last seen: 11 years 10 months ago
Joined: 2008-03-17 19:08
Thanks :)

Thanks Smile

Quamquam omniam nescio, nec nihil scio.

Log in or register to post comments