Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get access right to Registry in Vista

How to get access right to Registry in Vista

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiowindows-adminjsonhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nitheesh George
    wrote on last edited by
    #1

    Hi, I want to programmacally create an entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run in Vista to make my application to Load at windows start up. But when trying to create an entry RegSetValueEx return Access denied error. How can i add an entry under Run programmatically using VC++. Whether there is any API to get an access right to Vista Registry. I am using Vista Home and VS 2005 to develop my application. thanks Nitheesh.

    Jose Jo Martin http://www.simpletools.co.in

    S 1 Reply Last reply
    0
    • N Nitheesh George

      Hi, I want to programmacally create an entry under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run in Vista to make my application to Load at windows start up. But when trying to create an entry RegSetValueEx return Access denied error. How can i add an entry under Run programmatically using VC++. Whether there is any API to get an access right to Vista Registry. I am using Vista Home and VS 2005 to develop my application. thanks Nitheesh.

      Jose Jo Martin http://www.simpletools.co.in

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      HKEY_LOCAL_MACHINE implies admin/elevated access. If you don't have that, you don't get to right to HKEY_LOCAL_MACHINE. You could, of course, try using HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run[^] instead?

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      N 1 Reply Last reply
      0
      • S Stuart Dootson

        HKEY_LOCAL_MACHINE implies admin/elevated access. If you don't have that, you don't get to right to HKEY_LOCAL_MACHINE. You could, of course, try using HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run[^] instead?

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        N Offline
        N Offline
        Nitheesh George
        wrote on last edited by
        #3

        Hi Stuart, thank you for the reply. i will try with this. thanks Nitheesh.

        Jose Jo Martin http://www.simpletools.co.in

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups