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. unnamed registry keys

unnamed registry keys

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminquestion
2 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.
  • M Offline
    M Offline
    Mel Stober
    wrote on last edited by
    #1

    How do you get the value of an unnamed key value? In regedit it is diaplayed as "(Default)". I've tried RegQueryValueEx(hKey, "(default)", 0, &type, (unsigned char*)buf, &bufsize) but it returns 2. I've also tried to RegEnumKey() and it gets the key name ok, but it just refuses to get the value.

    D 1 Reply Last reply
    0
    • M Mel Stober

      How do you get the value of an unnamed key value? In regedit it is diaplayed as "(Default)". I've tried RegQueryValueEx(hKey, "(default)", 0, &type, (unsigned char*)buf, &bufsize) but it returns 2. I've also tried to RegEnumKey() and it gets the key name ok, but it just refuses to get the value.

      D Offline
      D Offline
      DanielP
      wrote on last edited by
      #2

      just set lpSubKey to NULL: RegQueryValueEx(hKey, NULL, 0, &type, (unsigned char*)buf, &bufsize)

      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