PC Review


Reply
Thread Tools Rate Thread

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

 
 
Emmanuel Stapf [ES]
Guest
Posts: n/a
 
      20th Jan 2009
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
 
      21st Jan 2009
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
 
FromTheRafters
Guest
Posts: n/a
 
      21st Jan 2009
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
 
Emmanuel Stapf [ES]
Guest
Posts: n/a
 
      22nd Jan 2009
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]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
 
Emmanuel Stapf [ES]
Guest
Posts: n/a
 
      22nd Jan 2009
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]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
 
Emmanuel Stapf [ES]
Guest
Posts: n/a
 
      22nd Jan 2009
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]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
 
FromTheRafters
Guest
Posts: n/a
 
      24th Jan 2009
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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]" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> 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
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I read registry on old HD to recover some keys? ferrymanr Microsoft Windows 2000 1 17th Jun 2007 01:00 AM
How to read registry keys from a remote computer? Sin Jeong-hun Microsoft C# .NET 5 21st Mar 2007 09:28 AM
Read Registry Keys (and possibly write) =?Utf-8?B?TWlrZSBJYWNvdm91?= Microsoft Excel Programming 4 8th Apr 2006 05:05 PM
Registry keys read on shutdown? Tegger® Windows XP Help 9 31st Oct 2004 12:13 AM
Separate keys in registry under HKLM =?Utf-8?B?RGltaXRyb3Y=?= Microsoft Windows 2000 Terminal Server Clients 1 20th Jul 2004 12:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:26 PM.