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. Visual Basic
  4. registry for dummies

registry for dummies

Scheduled Pinned Locked Moved Visual Basic
questionwindows-admin
12 Posts 4 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 John Kuhn

    Not sure about the REG_Binary part. Do you want to read registry values in VB6 or .NET?

    L Offline
    L Offline
    LokmanHakim
    wrote on last edited by
    #3

    .net

    J 1 Reply Last reply
    0
    • L LokmanHakim

      .net

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #4

      There are two ways of doing this in VB.NET, the VB way and the .NET framework way. Both are described in more detail than I could provide, here or you can read the documentation on MSDN, here.

      L 1 Reply Last reply
      0
      • J John Kuhn

        There are two ways of doing this in VB.NET, the VB way and the .NET framework way. Both are described in more detail than I could provide, here or you can read the documentation on MSDN, here.

        L Offline
        L Offline
        LokmanHakim
        wrote on last edited by
        #5

        I've already read this article. But it doesn't have what i need to know. But thanks anyway for your time.

        G 1 Reply Last reply
        0
        • L LokmanHakim

          I've already read this article. But it doesn't have what i need to know. But thanks anyway for your time.

          G Offline
          G Offline
          gpa2000
          wrote on last edited by
          #6

          *What* do you need to know? Be more specific. grtz, Guus

          L 1 Reply Last reply
          0
          • G gpa2000

            *What* do you need to know? Be more specific. grtz, Guus

            L Offline
            L Offline
            LokmanHakim
            wrote on last edited by
            #7

            specifically i want to retrieve system info such as processor brand, hard disk space, total space and free space and also all the program that is installed in a pc. I know if we want to get all the info we should use registry. I can retrieve the info with REG_SV data type and REG_DWORD data type but i don't know how to get the info that use REG_Binary data type.

            G D 2 Replies Last reply
            0
            • L LokmanHakim

              specifically i want to retrieve system info such as processor brand, hard disk space, total space and free space and also all the program that is installed in a pc. I know if we want to get all the info we should use registry. I can retrieve the info with REG_SV data type and REG_DWORD data type but i don't know how to get the info that use REG_Binary data type.

              G Offline
              G Offline
              gpa2000
              wrote on last edited by
              #8

              Ever tried to use the sysinfo.ocx control? Grtz, Guus

              L 1 Reply Last reply
              0
              • G gpa2000

                Ever tried to use the sysinfo.ocx control? Grtz, Guus

                L Offline
                L Offline
                LokmanHakim
                wrote on last edited by
                #9

                nope. is it exist in .net framework. how to use it. To be honest with u, i'm a newbie in .net

                J 1 Reply Last reply
                0
                • L LokmanHakim

                  nope. is it exist in .net framework. how to use it. To be honest with u, i'm a newbie in .net

                  J Offline
                  J Offline
                  John Kuhn
                  wrote on last edited by
                  #10

                  There is a relatively complex API called "WMI" -- Windows Management Instrumentation. Look for documentation on that. Unfortunately, I've never used it, but I've scanned through some articles in the past that imply that you can achieve what you are looking for with it.

                  1 Reply Last reply
                  0
                  • L LokmanHakim

                    specifically i want to retrieve system info such as processor brand, hard disk space, total space and free space and also all the program that is installed in a pc. I know if we want to get all the info we should use registry. I can retrieve the info with REG_SV data type and REG_DWORD data type but i don't know how to get the info that use REG_Binary data type.

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #11

                    The best way to do that if thru WMI. Not the easiest API to use, but you can start with the documentation on it here[^]. I've done exactly what your doing, but had to do it the hard way in C/C++ because not all my client machines had WMI support on them. If your reading from the registry or from disk info, it's a real pain to write code for every tiny bit of information you want to collect. WMI makes it SOOO much easier, but you still have to write a query for each piece of info you want. It's comes down a a few lines of code per item you want, but it's MUCH less that getting it out of the registry. Besides, some of the info you want isn't stored in the registry at all... EDIT: There are WMI Downloads for Tutorials and Tools here[^]. RageInTheMachine9532

                    L 1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      The best way to do that if thru WMI. Not the easiest API to use, but you can start with the documentation on it here[^]. I've done exactly what your doing, but had to do it the hard way in C/C++ because not all my client machines had WMI support on them. If your reading from the registry or from disk info, it's a real pain to write code for every tiny bit of information you want to collect. WMI makes it SOOO much easier, but you still have to write a query for each piece of info you want. It's comes down a a few lines of code per item you want, but it's MUCH less that getting it out of the registry. Besides, some of the info you want isn't stored in the registry at all... EDIT: There are WMI Downloads for Tutorials and Tools here[^]. RageInTheMachine9532

                      L Offline
                      L Offline
                      LokmanHakim
                      wrote on last edited by
                      #12

                      thanks you guys....you really help me a lot.

                      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