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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. get type of a value of a sys registry

get type of a value of a sys registry

Scheduled Pinned Locked Moved C / C++ / MFC
c++windows-admintutorialquestion
6 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.
  • R Offline
    R Offline
    ranjjj
    wrote on last edited by
    #1

    how to get the type of the system registry of a particular value using c++.. i use RegOpenKeyEx to open reg and RegQueryValueEx to get the value of the subkeys.. how to get the data and type of that value? ranjani

    A D 2 Replies Last reply
    0
    • R ranjjj

      how to get the type of the system registry of a particular value using c++.. i use RegOpenKeyEx to open reg and RegQueryValueEx to get the value of the subkeys.. how to get the data and type of that value? ranjani

      A Offline
      A Offline
      Anthony_Yio
      wrote on last edited by
      #2

      http://www.codeproject.com/system/registry.asp?target=CRegistry[^] Sonork 100.41263:Anthony_Yio

      1 Reply Last reply
      0
      • R ranjjj

        how to get the type of the system registry of a particular value using c++.. i use RegOpenKeyEx to open reg and RegQueryValueEx to get the value of the subkeys.. how to get the data and type of that value? ranjani

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

        ranjjj wrote: how to get the data and type of that value? You seem to have answered your own question. RegQueryValueEx() is used to retrieve both the type and data for a specified value.


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        R 2 Replies Last reply
        0
        • D David Crow

          ranjjj wrote: how to get the data and type of that value? You seem to have answered your own question. RegQueryValueEx() is used to retrieve both the type and data for a specified value.


          Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

          R Offline
          R Offline
          ranjjj
          wrote on last edited by
          #4

          for example to get the type of HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup ..what hould be the parameters to be passed on to thef unctiona dn chow should i use it in my code? ranjani

          1 Reply Last reply
          0
          • D David Crow

            ranjjj wrote: how to get the data and type of that value? You seem to have answered your own question. RegQueryValueEx() is used to retrieve both the type and data for a specified value.


            Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

            R Offline
            R Offline
            ranjjj
            wrote on last edited by
            #5

            for example to get the type of HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup ..what hould be the parameters to be passed on to thef unctiona dn chow should i use it in my code? ranjani

            D 1 Reply Last reply
            0
            • R ranjjj

              for example to get the type of HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup ..what hould be the parameters to be passed on to thef unctiona dn chow should i use it in my code? ranjani

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

              DWORD dwType;
              RegQueryValueEx(HKEY_CURRENT_USER, "SYSTEM\\CurrentControlSet\\Control\\BackupRestore\\FilesNotToBackup", NULL, &dwType, ...);


              Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

              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