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. Renaming registry

Renaming registry

Scheduled Pinned Locked Moved C / C++ / MFC
windows-admintestingtoolsjsonquestion
4 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.
  • S Offline
    S Offline
    sagmam
    wrote on last edited by
    #1

    Is there any way to rename a regsitry key that already exists? The same way a user can do when he presses F2 while in the Registry Editor? I could not find any Win32 API function that does this, nor an automation interface of regedit... /=/=/=/= Deus /=/=/=/=

    D 1 Reply Last reply
    0
    • S sagmam

      Is there any way to rename a regsitry key that already exists? The same way a user can do when he presses F2 while in the Registry Editor? I could not find any Win32 API function that does this, nor an automation interface of regedit... /=/=/=/= Deus /=/=/=/=

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

      There is no such way. Regedit at first creates new key, copies all subkeys, and then deletes old key.

      S 1 Reply Last reply
      0
      • D DanielP

        There is no such way. Regedit at first creates new key, copies all subkeys, and then deletes old key.

        S Offline
        S Offline
        sagmam
        wrote on last edited by
        #3

        I find it hard to believe since it is done instantaneously - even if the renamed key contains a full hierarchy. Try it yourself: create some huge subtree and then rename its root key. You'll see that it happens immediately. /=/=/=/= Deus /=/=/=/=

        D 1 Reply Last reply
        0
        • S sagmam

          I find it hard to believe since it is done instantaneously - even if the renamed key contains a full hierarchy. Try it yourself: create some huge subtree and then rename its root key. You'll see that it happens immediately. /=/=/=/= Deus /=/=/=/=

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

          When I do that my program works very fast too :))) ..And why you suppose it works slowly? Most of Registry is cached in memory therefore it's just memory copying. But if you don't believe me, run Regmon and see for yourself

          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