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. New bee

New bee

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    Hi guys, I am nee bee in MFC. I have to get the System details where I am running my program, I use GetSystemInfo() call for that but I couldn't get the details of the OS. Is there any call to get that? Please help. thanks. bye Prav:)

    J P 2 Replies Last reply
    0
    • A Anonymous

      Hi guys, I am nee bee in MFC. I have to get the System details where I am running my program, I use GetSystemInfo() call for that but I couldn't get the details of the OS. Is there any call to get that? Please help. thanks. bye Prav:)

      J Offline
      J Offline
      Jason Henderson
      wrote on last edited by
      #2

      GetVersionEx()

      Jason Henderson
      quasi-homepage
      articles
      "Like it or not, I'm right!"

      1 Reply Last reply
      0
      • A Anonymous

        Hi guys, I am nee bee in MFC. I have to get the System details where I am running my program, I use GetSystemInfo() call for that but I couldn't get the details of the OS. Is there any call to get that? Please help. thanks. bye Prav:)

        P Offline
        P Offline
        Peter Occil
        wrote on last edited by
        #3

        I need to assume that this person doesn't know how to use GetVersionEx. The following example retrieves the current version of Windows.

        OSVERSIONINFO vi;
        WORD wWinVer;
        vi.dwOSVersionInfoSize=sizeof(vi);
        GetVersionEx(&vi);
        wWinVer=MAKEWORD(vi.dwMinorVersion,
        vi.dwMajorVersion);

        Besides the major and minor version numbers, the version information returned by GetVersionEx includes the build number of the OS, identifies the running platform, and contains additional information about the Windows version installed. Peter O.

        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