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. get Operating system name programmatically c++

get Operating system name programmatically c++

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialannouncement
9 Posts 5 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.
  • O Offline
    O Offline
    onlyjaypatel
    wrote on last edited by
    #1

    how to get Operating system name programmatically c++ and get installed office version

    R 1 Reply Last reply
    0
    • O onlyjaypatel

      how to get Operating system name programmatically c++ and get installed office version

      R Offline
      R Offline
      Rajesh R Subramanian
      wrote on last edited by
      #2

      See GetVersionEx[^]

      Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

      O 1 Reply Last reply
      0
      • R Rajesh R Subramanian

        See GetVersionEx[^]

        Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

        O Offline
        O Offline
        onlyjaypatel
        wrote on last edited by
        #3

        Actualy i want the name of os installed.

        S R 2 Replies Last reply
        0
        • O onlyjaypatel

          Actualy i want the name of os installed.

          S Offline
          S Offline
          SandipG
          wrote on last edited by
          #4

          Does this page[^] help??

          Regards, Sandip.

          O 1 Reply Last reply
          0
          • O onlyjaypatel

            Actualy i want the name of os installed.

            R Offline
            R Offline
            Rajesh R Subramanian
            wrote on last edited by
            #5

            onlyjaypatel wrote:

            Actualy i want the name of os installed.

            You must be able to make that out from OSVERSIONINFOEX[^] structure that you pass on to GetVersionEx(). Please search for examples.

            Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

            O 1 Reply Last reply
            0
            • R Rajesh R Subramanian

              onlyjaypatel wrote:

              Actualy i want the name of os installed.

              You must be able to make that out from OSVERSIONINFOEX[^] structure that you pass on to GetVersionEx(). Please search for examples.

              Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]

              O Offline
              O Offline
              onlyjaypatel
              wrote on last edited by
              #6

              Thanx dear. :-D I just got it in msdn but is there any other method to get that

              D 1 Reply Last reply
              0
              • S SandipG

                Does this page[^] help??

                Regards, Sandip.

                O Offline
                O Offline
                onlyjaypatel
                wrote on last edited by
                #7

                Thanx sandy. :-D I just got it in msdn but is there any other method to get that?

                M 1 Reply Last reply
                0
                • O onlyjaypatel

                  Thanx dear. :-D I just got it in msdn but is there any other method to get that

                  D Offline
                  D Offline
                  Dracula Wang
                  wrote on last edited by
                  #8

                  use WMI Win32_OperatingSystem how to use WMI in CPP you can find in MSDN

                  1 Reply Last reply
                  0
                  • O onlyjaypatel

                    Thanx sandy. :-D I just got it in msdn but is there any other method to get that?

                    M Offline
                    M Offline
                    Mark Salsbery
                    wrote on last edited by
                    #9

                    There's sample code if you follow the link provided to you earlier... Getting the System Version[^]

                    Mark Salsbery Microsoft MVP - Visual C++ :java:

                    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