Jump to content

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


Recommended Posts

Guest Emmanuel Stapf [ES]
Posted

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

Guest Ondrej Sevecek
Posted

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...<span style="color:blue">

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

>

> </span>

Guest FromTheRafters
Posted

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...<span style="color:blue">

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

>

> </span>

Guest Emmanuel Stapf [ES]
Posted

Ondrej Sevecek wrote:<span style="color:blue">

> what about registry virtualization? is that enabled or disabled and what

> about the feature on the other Vista machine?</span>

 

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

<span style="color:blue">

> 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...<span style="color:green">

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

>>

>></span>

> </span>

Guest Emmanuel Stapf [ES]
Posted

FromTheRafters wrote:<span style="color:blue">

> http://msdn.microsoft.com/en-us/library/aa965884.aspx

>

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

> again?</span>

 

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

<span style="color:blue">

>

> "Emmanuel Stapf [ES]" <manus@newsgroups.nospam> wrote in message

> news:OAEqJxzeJHA.1336@TK2MSFTNGP02.phx.gbl...<span style="color:green">

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

>>

>></span>

>

> </span>

Guest Emmanuel Stapf [ES]
Posted

FromTheRafters wrote:<span style="color:blue">

> http://msdn.microsoft.com/en-us/library/aa965884.aspx

>

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

> again?</span>

 

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

<span style="color:blue">

>

> "Emmanuel Stapf [ES]" <manus@newsgroups.nospam> wrote in message

> news:OAEqJxzeJHA.1336@TK2MSFTNGP02.phx.gbl...<span style="color:green">

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

>>

>></span>

>

> </span>

Guest FromTheRafters
Posted

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...<span style="color:blue">

> FromTheRafters wrote:<span style="color:green">

>> http://msdn.microsoft.com/en-us/library/aa965884.aspx

>>

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

>> again?</span>

>

> 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

><span style="color:green">

>>

>> "Emmanuel Stapf [ES]" <manus@newsgroups.nospam> wrote in message

>> news:OAEqJxzeJHA.1336@TK2MSFTNGP02.phx.gbl...<span style="color:darkred">

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

>>>

>>></span>

>> </span></span>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...