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. Modify Registry Key

Modify Registry Key

Scheduled Pinned Locked Moved C / C++ / MFC
questionwindows-admin
12 Posts 6 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.
  • J Offline
    J Offline
    john5632
    wrote on last edited by
    #1

    Hi, How can I change the name of existing registry key?

    R H 2 Replies Last reply
    0
    • J john5632

      Hi, How can I change the name of existing registry key?

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      MPTP wrote:

      How can I change the name of existing registry key?

      By writing a program? On a serious note, see CRegKey[^] and Registry Functions[^]

      Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

      J D 2 Replies Last reply
      0
      • J john5632

        Hi, How can I change the name of existing registry key?

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        And see here[^].

        J 1 Reply Last reply
        0
        • R Rajesh R Subramanian

          MPTP wrote:

          How can I change the name of existing registry key?

          By writing a program? On a serious note, see CRegKey[^] and Registry Functions[^]

          Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

          J Offline
          J Offline
          john5632
          wrote on last edited by
          #4

          Which function is to be used?

          H 1 Reply Last reply
          0
          • J john5632

            Which function is to be used?

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            For start see CRegKey::Open. :)

            1 Reply Last reply
            0
            • H Hamid Taebi

              And see here[^].

              J Offline
              J Offline
              john5632
              wrote on last edited by
              #6

              This is wrapper class but I want a simple win32 API to change the key name

              N 1 Reply Last reply
              0
              • J john5632

                This is wrapper class but I want a simple win32 API to change the key name

                N Offline
                N Offline
                Naveen
                wrote on last edited by
                #7

                ASAIK, there is no rename function. You have to delete the existing key and add new one...

                nave [OpenedFileFinder] [My Blog]

                J 1 Reply Last reply
                0
                • N Naveen

                  ASAIK, there is no rename function. You have to delete the existing key and add new one...

                  nave [OpenedFileFinder] [My Blog]

                  J Offline
                  J Offline
                  john5632
                  wrote on last edited by
                  #8

                  The key also have many subkeys So it is not possible for me to do so, Is there any alternate to rename the same key without deleting.

                  R D 2 Replies Last reply
                  0
                  • J john5632

                    The key also have many subkeys So it is not possible for me to do so, Is there any alternate to rename the same key without deleting.

                    R Offline
                    R Offline
                    Rane
                    wrote on last edited by
                    #9

                    Use RegCopyTree to copy the whole registry tree (Key & its Subkeys) to a dummy key and then delete the original tree.Then try creating a new Key(using RegCreateKeyEx) with "New Name" and add the whole subtree to the "New Name" Key. Regards, Rane

                    1 Reply Last reply
                    0
                    • R Rajesh R Subramanian

                      MPTP wrote:

                      How can I change the name of existing registry key?

                      By writing a program? On a serious note, see CRegKey[^] and Registry Functions[^]

                      Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #10

                      Rajesh R Subramanian wrote:

                      On a serious note, see CRegKey[^] and Registry Functions[^]

                      Are you being facetious?

                      "Love people and use things, not love things and use people." - Unknown

                      "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

                      R 1 Reply Last reply
                      0
                      • J john5632

                        The key also have many subkeys So it is not possible for me to do so, Is there any alternate to rename the same key without deleting.

                        D Offline
                        D Offline
                        David Crow
                        wrote on last edited by
                        #11

                        MPTP wrote:

                        The key also have many subkeys So it is not possible for me to do so...

                        It's certainly possible. You just have to be willing to put forth effort to do it.

                        "Love people and use things, not love things and use people." - Unknown

                        "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

                        1 Reply Last reply
                        0
                        • D David Crow

                          Rajesh R Subramanian wrote:

                          On a serious note, see CRegKey[^] and Registry Functions[^]

                          Are you being facetious?

                          "Love people and use things, not love things and use people." - Unknown

                          "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

                          R Offline
                          R Offline
                          Rajesh R Subramanian
                          wrote on last edited by
                          #12

                          Why, yes. That was best reply I could give to a lazy person like him. :)

                          Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

                          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