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

Discussion in 'Windows Vista Security' started by Emmanuel Stapf [ES], Jan 20, 2009.

  1. 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], Jan 20, 2009
    #1
    1. Advertisements

  2. 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.
     
    Ondrej Sevecek, Jan 21, 2009
    #2
    1. Advertisements

  3. FromTheRafters, Jan 21, 2009
    #3
  4. 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
     
    Emmanuel Stapf [ES], Jan 22, 2009
    #4
  5. 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], Jan 22, 2009
    #5
  6. 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], Jan 22, 2009
    #6
  7. 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.
     
    FromTheRafters, Jan 24, 2009
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.