Announcement

Collapse
No announcement yet.

Registry

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Registry

    Is there a way to read the windows (95, 98, 2000, NT) registry using PBDOS3.5?

    ------------------
    Walt Decker

  • #2
    Certainly, but how? Check the "Web Links" section of the site for Ralf Brown's
    home page. If it's not in his legendary interrupt list, you may need a Windows
    process to act as a server for your DOS client. You'd need to write that in a
    Windows language such as PB/CC or PB/DLL.


    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Comment


    • #3
      And to read the 32-bit registry, that Windows server will need to be a 32-bit Windows program.

      I was trying to read the 32-bit registry from a 16-bit Windows program, and it is really, really hairy to do, as you need to go through multiple "thunks".


      It's not easy at all: I gave up and SHELLed a 32-bit program; which is, by the way, another way to do this.
      From you DOS program, you can SHELL a PB/CC or PB/DLL (32) program and write the data to file which you then read from your DOS program.

      MCM
      Michael Mattias
      Tal Systems Inc. (retired)
      Racine WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        Thank you, Tom and Michael. I'm already using PB/DLL to read the registry and write it to a file. However, I've run into a small problem with Windows 2000 Pro in that the PB/DLL hangs when called from the DOS app.

        Oh, well, I guess I'll figure something out.

        ------------------
        Walt Decker

        Comment


        • #5
          That has to be something specific with your app - I SHELL to PB/DLL app's from DOS code very frequently - no problems.

          ------------------
          Lance
          PowerBASIC Support
          mailto:[email protected][email protected]</A>
          Lance
          mailto:[email protected]

          Comment


          • #6
            No, Lance, it has nothing to do with the app. Shelling works fine on 95 and 98.
            It might have to do with my version of Win2000 Pro.

            ------------------
            Walt Decker

            Comment


            • #7
              Lance generally uses Win2k also. There are no known problems such as you
              describe involving any of the PowerBASIC compilers. You may wish to take
              this up with tech support.

              ------------------
              Tom Hanlin
              PowerBASIC Staff

              Comment

              Working...
              X