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. Problem with RegOpenKeyEx() in Vista

Problem with RegOpenKeyEx() in Vista

Scheduled Pinned Locked Moved C / C++ / MFC
jsonhelp
4 Posts 3 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.
  • A Offline
    A Offline
    Aryan S
    wrote on last edited by
    #1

    I want to write reg value in HKLM in windows Vista. But RegOpenKeyEx() API is failing. I am using access rights as KEY_READ | KEY_WRITE. Please give some suggestion.

    F S 2 Replies Last reply
    0
    • A Aryan S

      I want to write reg value in HKLM in windows Vista. But RegOpenKeyEx() API is failing. I am using access rights as KEY_READ | KEY_WRITE. Please give some suggestion.

      F Offline
      F Offline
      Frank K
      wrote on last edited by
      #2

      Hi, "KEY_WRITE" -> have you administration rights? (because HKLM) What is the return value of GetLastError()? Frank

      A 1 Reply Last reply
      0
      • F Frank K

        Hi, "KEY_WRITE" -> have you administration rights? (because HKLM) What is the return value of GetLastError()? Frank

        A Offline
        A Offline
        Aryan S
        wrote on last edited by
        #3

        Yes, the user has administrative rights. Though the user is not the by default (in built) administrator. GetLastError is returning Access denied.

        1 Reply Last reply
        0
        • A Aryan S

          I want to write reg value in HKLM in windows Vista. But RegOpenKeyEx() API is failing. I am using access rights as KEY_READ | KEY_WRITE. Please give some suggestion.

          S Offline
          S Offline
          S Douglas
          wrote on last edited by
          #4

          Aryan S wrote:

          I want to write reg value in HKLM in windows Vista

          I never did have a change to read through this, but take a look here http://www.microsoft.com/technet/windowsvista/evaluate/feat/secfeat.mspx#E6B[^] Was suggested by Michael D from the Lounge[^]


          I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

          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