Re: Using the registry in Vista.



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 a
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?

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Admin account suddenly changing to a standard one
    ... (with admin privileges, ... the system I could login but the account whose short name I changed - the ... Given your level of experience, and assuming you have backed up your important data, I'd say the easiest and fastest way to recover from the changes you've made would be to simply re-install the operating system and restore your data from backup at this point. ...
    (comp.sys.mac.system)
  • Re: Admin account suddenly changing to a standard one
    ... (with admin privileges, ... the system I could login but the account whose short name I changed - the ... Changing the short name of a user account is anything but simple. ...
    (comp.sys.mac.system)
  • Re: Administrator Privlages
    ... under user accounts and the administrator box is checked. ... Secondly it is not good practice to be using the built in Administrator account for day to day activities. ... Best practice is create at least one other account with admin privileges and as many other limited user accounts as you need, and use one of those for day to day activities. ... To login to that account, if XP Pro, at the Welcome Screen do Ctrl-Alt-Del twice to bring up the classic login dialog box. ...
    (microsoft.public.windowsxp.general)
  • Weakness introduced by denying remote logins on AIX, possibly others
    ... AIX 4.3.3 and AIX 5.1, ... is possible to remotely enumerate the passwords of a known AIX account. ... believed to be in the response from the login program after authentication ... Give accounts that have been restricted from remote logins strong passwords. ...
    (Security-Basics)
  • Re: Please! Doesnt anyone know a better way to do this?
    ... account, they need to automatically be directed to the page to enter data ... session variable on the Account page. ... I assume here that you're checking a database when the user attempts to ... When a new user attempts to login or clicks to register, ...
    (microsoft.public.dotnet.framework.aspnet)