Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt version of MSInfo32.exe

Qt version of MSInfo32.exe

Scheduled Pinned Locked Moved General and Desktop
13 Posts 5 Posters 3.5k Views
  • 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.
  • M Offline
    M Offline
    mcosta
    wrote on last edited by
    #4

    Hi,

    IMHO this isn't the right forum to ask about example of using Win32 API.

    Once your problem is solved don't forget to:

    • Mark the thread as SOLVED using the Topic Tool menu
    • Vote up the answer(s) that helped you to solve the issue

    You can embed images using (http://imgur.com/) or (http://postimage.org/)

    1 Reply Last reply
    0
    • A Offline
      A Offline
      astodolski
      wrote on last edited by
      #5

      When I am referring to a native API, I am not necessarily meaning that to be Win32 API. Native as in contrast to managed (i.e. .NET).

      Hope that's clear

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mcosta
        wrote on last edited by
        #6

        It's clear but however Native API isn't Qt API.

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        1 Reply Last reply
        0
        • A Offline
          A Offline
          astodolski
          wrote on last edited by
          #7

          This is starting to border on the asinine. Thanks for the suggestion on QSysInfo - limited as it is for what was asked.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mikeosoft
            wrote on last edited by
            #8

            In the dim distant past I developed a little program that did something similar to what you are interested in doing.

            In those days I was a Desktop Support person and I programmed it using Visual Studio 6. It had a GUI (MFC) and presented the information on tabs that the user could view and email to the company helpdesk if required. I did this in the days before there were quite so many diagnostic tools for the Windows Platform.

            This might raise the question as to why develop when there are tools that will already do the job? Though no problem if you are doing it for fun.

            The point I want to bring to this discussion is that the information I required and displayed within the program was mostly read from Windows Registry. The way Windows works won’t have changed that much, so I would guess you would be able to do a lot of what you wish just reading HKLM in the Windows Registry.

            The program was fairly diagnostic and provided a vast amount of information. As a Support person I knew the Registry very well and was able to work out where what I wanted was.

            I didn’t use Qt, but QSettings can read the Registry, though I don’t know how flexible it can be in doing this. As it is settings focus, it possibly focuses of HKCU. There is also the Qt Windows Extras Library, which may offer another approach to this.

            I now try and live in a world where the slashes in the path strings go the other way and were I Carriage Return, rather than Carriage Return and Line Feed. ;-}

            1 Reply Last reply
            0
            • A Offline
              A Offline
              astodolski
              wrote on last edited by
              #9

              [quote author="mikeosoft" date="1383831339"]In the dim distant past I developed a little program that did something similar to what you are interested in doing.

              In those days I was a Desktop Support person and I programmed it using Visual Studio 6. It had a GUI (MFC) and presented the information on tabs that the user could view and email to the company helpdesk if required. I did this in the days before there were quite so many diagnostic tools for the Windows Platform.

              This might raise the question as to why develop when there are tools that will already do the job? Though no problem if you are doing it for fun.

              The point I want to bring to this discussion is that the information I required and displayed within the program was mostly read from Windows Registry. The way Windows works won’t have changed that much, so I would guess you would be able to do a lot of what you wish just reading HKLM in the Windows Registry.

              The program was fairly diagnostic and provided a vast amount of information. As a Support person I knew the Registry very well and was able to work out where what I wanted was.

              I didn’t use Qt, but QSettings can read the Registry, though I don’t know how flexible it can be in doing this. As it is settings focus, it possibly focuses of HKCU. There is also the Qt Windows Extras Library, which may offer another approach to this.

              I now try and live in a world where the slashes in the path strings go the other way and were I Carriage Return, rather than Carriage Return and Line Feed. ;-}
              [/quote]

              Hi.

              Thanks for the response. The reason for asking for a solution in Qt is a matter of host qualification for apps deployed written using Qt. There are apps and utilities that we are creating and it is helpful if prior to launch that certain housekeeping is run to ensure that the appropriate resources are available.

              Having that self-contained rather than launch of a separate (although from what I've found superior windows version) app that checks these things is what is preferable.

              I understand the challenges of portability but this is at least a start. BTW I can't seem to locate Qt Windows Extras Library

              1 Reply Last reply
              0
              • T3STYT Offline
                T3STYT Offline
                T3STY
                wrote on last edited by
                #10

                The QtWindows extras library is only available in Qt 5.2, which is actually in beta stage.

                Anyway, if you're looking for Win32 API this might be of interest:
                http://msdn.microsoft.com/en-us/library/windows/desktop/ms724381(v=vs.85).aspx
                but remember that people here might be unable to help you with Win32 API issues.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  astodolski
                  wrote on last edited by
                  #11

                  [quote author="T3STY" date="1383881898"]The QtWindows extras library is only available in Qt 5.2, which is actually in beta stage.

                  Anyway, if you're looking for Win32 API this might be of interest:
                  http://msdn.microsoft.com/en-us/library/windows/desktop/ms724381(v=vs.85).aspx
                  but remember that people here might be unable to help you with Win32 API issues.[/quote]

                  Thanks for the response but I was looking for a Qt solution - NOT Win32. I thought the title of the thread was clear about that

                  1 Reply Last reply
                  0
                  • T3STYT Offline
                    T3STYT Offline
                    T3STY
                    wrote on last edited by
                    #12

                    Well, you stated it was good for you to use "native API" which just means it's an OS-specific API, so my link was a good solution. But since you don't want that you will have to implement an API for doing that yourself.
                    Please also note that Qt's Windows extras library from Qt 5.2 is an OS specific API too dedicated to Windows systems only; on other OSs the APIs won't do anything.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      PSI-lbc
                      wrote on last edited by
                      #13

                      You could use a QProcess to run winmsd.exe or MSInfo32.exe with appropriate args. Re-direct the output into a text file. Then parse the text file for the properties or info you're interested in.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved