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


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


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
>
>
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
>
>
FromTheRafters
Guest
Posts: n/a
 
Re: Cannot read registry keys under HKLM with UAC enabled on Vista?
Posted: 01-21-2009, 12:16 PM
http://msdn.microsoft.com/en-us/library/aa965884.aspx

Maybe you could clear the virtual store key and get it working
again?

"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
>
>

Emmanuel Stapf [ES]
Guest
Posts: n/a
 
Re: Cannot read registry keys under HKLM with UAC enabled on Vista?
Posted: 01-22-2009, 07:27 AM
Ondrej Sevecek wrote:
> what about registry virtualization? is that enabled or disabled and what
> about the feature on the other Vista machine?
It is set to CLEAR for the DONT_VIRTUALIZE flag. So I guess it is
virtualized because my program is run with elevated priviliges.

Regards,
Manu
> 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
>>
>>
>
Emmanuel Stapf [ES]
Guest
Posts: n/a
 
Re: Cannot read registry keys under HKLM with UAC enabled on Vista?
Posted: 01-22-2009, 07:28 AM
FromTheRafters wrote:
> http://msdn.microsoft.com/en-us/library/aa965884.aspx
>
> Maybe you could clear the virtual store key and get it working
> again?
As far as I can tell the virtual store is empty or at least does not
contain the key I'm trying to read.

Manu
>
> "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
>>
>>
>
>
Emmanuel Stapf [ES]
Guest
Posts: n/a
 
Re: Cannot read registry keys under HKLM with UAC enabled on Vista?
Posted: 01-22-2009, 07:28 AM
FromTheRafters wrote:
> http://msdn.microsoft.com/en-us/library/aa965884.aspx
>
> Maybe you could clear the virtual store key and get it working
> again?
As far as I can tell the virtual store is empty or at least does not
contain the key I'm trying to read.

Manu
>
> "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
>>
>>
>
>
FromTheRafters
Guest
Posts: n/a
 
Re: Cannot read registry keys under HKLM with UAC enabled on Vista?
Posted: 01-24-2009, 03:19 AM
So, the program runs elevated? Vista compatible?

Wild geese and red herring for dinner!?

UAC also affects the integrity level mechanism - but that wouldn't
explain how it worked before but not now.

Sorry, I'm lost...
....maybe tech support could help you.


"Emmanuel Stapf [ES]" <manus@newsgroups.nospam> wrote in message
news:urFeGMGfJHA.1288@TK2MSFTNGP02.phx.gbl...
> FromTheRafters wrote:
>> http://msdn.microsoft.com/en-us/library/aa965884.aspx
>>
>> Maybe you could clear the virtual store key and get it working
>> again?
>
> As far as I can tell the virtual store is empty or at least does not
> contain the key I'm trying to read.
>
> Manu
>
>>
>> "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
>>>
>>>
>>
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not 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 01:59 PM
how can I delete registry key value in HKLM Rastlin Chen Windows Vista Security 2 09-08-2006 01: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 10:01 PM