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. Back Up You registry Programmatically

Back Up You registry Programmatically

Scheduled Pinned Locked Moved C / C++ / MFC
c++windows-admin
7 Posts 4 Posters 1 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.
  • H Offline
    H Offline
    HAHAHA_NEXT
    wrote on last edited by
    #1

    hi. I wonder if there is any way to backup my registry using straight C++ 6 code or vb6 code. (I am using win 2000). Ths.

    N I 2 Replies Last reply
    0
    • H HAHAHA_NEXT

      hi. I wonder if there is any way to backup my registry using straight C++ 6 code or vb6 code. (I am using win 2000). Ths.

      N Offline
      N Offline
      Navin
      wrote on last edited by
      #2

      Check out the Win32 registry API (RegEnumKeys, etc.) It's ugly, but will get you going. Note that if you are on Windows NT, 2000, or XP, you will have to be administrator to be able to read some of the keys. Sometimes I feel like I'm a USB printer in a parallel universe.

      H 1 Reply Last reply
      0
      • N Navin

        Check out the Win32 registry API (RegEnumKeys, etc.) It's ugly, but will get you going. Note that if you are on Windows NT, 2000, or XP, you will have to be administrator to be able to read some of the keys. Sometimes I feel like I'm a USB printer in a parallel universe.

        H Offline
        H Offline
        HAHAHA_NEXT
        wrote on last edited by
        #3

        Backing Up My registry using these Api functions is :eek: X| X| . I need something really simple.

        2 1 Reply Last reply
        0
        • H HAHAHA_NEXT

          Backing Up My registry using these Api functions is :eek: X| X| . I need something really simple.

          2 Offline
          2 Offline
          224917
          wrote on last edited by
          #4

          To back up the whole registry, use the Windows NT Backup tool (Ntbackup.exe) and use the option to back up the registry. Or, run the rdisk /s command. check msdn for details...


          It's not a bug, it's an undocumented feature.
          suhredayan@omniquad.com

          messenger :suhredayan@hotmail.com

          1 Reply Last reply
          0
          • H HAHAHA_NEXT

            hi. I wonder if there is any way to backup my registry using straight C++ 6 code or vb6 code. (I am using win 2000). Ths.

            I Offline
            I Offline
            Igor Vartanov
            wrote on last edited by
            #5

            See RegSaveKey() in MSDN. :) Respectfully, Igor.

            H 2 Replies Last reply
            0
            • I Igor Vartanov

              See RegSaveKey() in MSDN. :) Respectfully, Igor.

              H Offline
              H Offline
              HAHAHA_NEXT
              wrote on last edited by
              #6

              Ths. This is very useful. Anton.

              1 Reply Last reply
              0
              • I Igor Vartanov

                See RegSaveKey() in MSDN. :) Respectfully, Igor.

                H Offline
                H Offline
                HAHAHA_NEXT
                wrote on last edited by
                #7

                Actually after i red about it, it is much less useful. SaveKey/Restore Key save the Key Contents, but not the key itself neither its security and other attributes. :((. Only Absolute Power and Absolutely No power matters. The rest is slavery.

                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