Re: Using the registry in Vista.
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Mon, 04 Jun 2007 14:11:24 -0400
No. HKLM is definitely protected, and therefore can only be modified by someone with
admin privileges. Why are you putting things in HKLM? Things in this key affect every
user, and in most XP and Server2003 systems it is already locked down and inaccessible.
HKCU is where things that change after installation should be put. HKLM should be
reserved for installation-time parameters, and even under that scenario, its use should be
limited.
Services are different animals. You may have to protect a subkey and grant rights to the
service;s login account.
When a service starts (before or after login) is irrelevant. Services run in whatever
account the service was created to run in. Note that unless it is one of the special
service accounts, it is running as a logged-in user and should have HKCU access to that
login account. Do not confuse interactive console login with privileges of a service.
Services may start before a user logs in, but that has nothing to do with what account the
service runs under. That is established when the service is created, and is permanent.
joe
On Mon, 4 Jun 2007 12:05:35 -0500, "TonyG" <TonyG@xxxxxxxx> wrote:
I haven't started programming to target Vista yet. (First, I need to buy aJoseph M. Newcomer [MVP]
new computer that has Vista.) Currently, depending on my program, they run
on either XP or Server 2003.
Can I access the same areas of the registry in Vista? I've been putting
everything in local machine. Can I continue to do that?
If I can't, what do I do? If I write a service... They start up before a
login. Right? So how do I use the registry in that case?
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- Using the registry in Vista.
- From: TonyG
- Using the registry in Vista.
- Prev by Date: Re: converts screen units to the specified dialog box units
- Next by Date: Re: CView to CScrollView
- Previous by thread: Re: Using the registry in Vista.
- Next by thread: Re: Using the registry in Vista.
- Index(es):
Relevant Pages
|