Cannot read registry keys under HKLM with UAC enabled on Vista?

Posted: 01-20-2009, 08:18 PM
Hi,

I have a program that worked successfully for quite some time and just
recently it stopped working. I tracked it down to a reading of a
registry key located in HKLM\Software where I get an error from the
Win32 API `RegOpenKeyEx' which returns with a value of 2 (that is to say
there is no such entries). But there is such an entry so this is very
puzzling.

What is happening? Why was it working before and not now? The same
program works fine under another vista machine which is more or less
configured the same way.

Of course disabling UAC works but that's out of the question.

Thanks,
Manu


Reply With Quote

Responses to "Cannot read registry keys under HKLM with UAC enabled on Vista?"

Ondrej Sevecek
Guest
Posts: n/a
 
Re: Cannot read registry keys under HKLM with UAC enabled on Vista?
Posted: 01-21-2009, 10:46 AM
what about registry virtualization? is that enabled or disabled and what
about the feature on the other Vista machine?

is the program in question running with Elevated privileges, or just
without?

ondra.


"Emmanuel Stapf [ES]" <manus@newsgroups.nospam> wrote in message
news:OAEqJxzeJHA.1336@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> I have a program that worked successfully for quite some time and just
> recently it stopped working. I tracked it down to a reading of a registry
> key located in HKLM\Software where I get an error from the Win32 API
> `RegOpenKeyEx' which returns with a value of 2 (that is to say there is no
> such entries). But there is such an entry so this is very puzzling.
>
> What is happening? Why was it working before and not now? The same program
> works fine under another vista machine which is more or less configured
> the same way.
>
> Of course disabling UAC works but that's out of the question.
>
> Thanks,
> Manu
>
>
Reply With Quote
Ondrej Sevecek
Guest
Posts: n/a
 
Re: Cannot read registry keys under HKLM with UAC enabled on Vista?
Posted: 01-21-2009, 10:46 AM
what about registry virtualization? is that enabled or disabled and what
about the feature on the other Vista machine?

is the program in question running with Elevated privileges, or just
without?

ondra.


"Emmanuel Stapf [ES]" <manus@newsgroups.nospam> wrote in message
news:OAEqJxzeJHA.1336@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> I have a program that worked successfully for quite some time and just
> recently it stopped working. I tracked it down to a reading of a registry
> key located in HKLM\Software where I get an error from the Win32 API
> `RegOpenKeyEx' which returns with a value of 2 (that is to say there is no
> such entries). But there is such an entry so this is very puzzling.
>
> What is happening? Why was it working before and not now? The same program
> works fine under another vista machine which is more or less configured
> the same way.
>
> Of course disabling UAC works but that's out of the question.
>
> Thanks,
> Manu
>
>
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
UAC and permissions on HKLM registry Doug Walch Windows Vista Security 3 10-28-2006 02:59 PM
how can I delete registry key value in HKLM Rastlin Chen Windows Vista Security 2 09-08-2006 02:42 PM
WMIC command to read registry Uninstall keys ... Joe Windows XP WMI 2 01-25-2005 05:35 AM
Cannot see HKCU or HKLM keys Windows XP Security & Administration 2 11-18-2003 09:58 PM
What is the default registry permission for HKLM? ML Chin Windows XP Security & Administration 3 09-30-2003 11:01 PM