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. Windows API
  4. platform id for windows vista

platform id for windows vista

Scheduled Pinned Locked Moved Windows API
question
4 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.
  • S Offline
    S Offline
    sheetal_06
    wrote on last edited by
    #1

    What is the platform id for windows vista? Thanks

    P 1 Reply Last reply
    0
    • S sheetal_06

      What is the platform id for windows vista? Thanks

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      sheetal_06 wrote:

      What is the platform id for windows vista?

      Its VER_PLATFORM_WIN32_NT. Probably, you wanted major version for Vista. Its 6. Following code will give you some idea.

      OSVERSIONINFO info;
      info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
      if (GetVersionEx(&info))
      {
      if (info.dwPlatformId == VER_PLATFORM_WIN32_NT)
      {
      if (info.dwMajorVersion == 6)
      {
      //Its Vista
      }
      }
      }

      Prasad Notifier using ATL | Operator new[],delete[][^]

      S M 2 Replies Last reply
      0
      • P prasad_som

        sheetal_06 wrote:

        What is the platform id for windows vista?

        Its VER_PLATFORM_WIN32_NT. Probably, you wanted major version for Vista. Its 6. Following code will give you some idea.

        OSVERSIONINFO info;
        info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
        if (GetVersionEx(&info))
        {
        if (info.dwPlatformId == VER_PLATFORM_WIN32_NT)
        {
        if (info.dwMajorVersion == 6)
        {
        //Its Vista
        }
        }
        }

        Prasad Notifier using ATL | Operator new[],delete[][^]

        S Offline
        S Offline
        sheetal_06
        wrote on last edited by
        #3

        Thank you very much.

        1 Reply Last reply
        0
        • P prasad_som

          sheetal_06 wrote:

          What is the platform id for windows vista?

          Its VER_PLATFORM_WIN32_NT. Probably, you wanted major version for Vista. Its 6. Following code will give you some idea.

          OSVERSIONINFO info;
          info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
          if (GetVersionEx(&info))
          {
          if (info.dwPlatformId == VER_PLATFORM_WIN32_NT)
          {
          if (info.dwMajorVersion == 6)
          {
          //Its Vista
          }
          }
          }

          Prasad Notifier using ATL | Operator new[],delete[][^]

          M Offline
          M Offline
          Mila025
          wrote on last edited by
          #4

          Hi, Vista can be 64bit too :) MS's code for getting system version: http://msdn2.microsoft.com/en-us/library/ms724429.aspx[^]

          ----------- Mila

          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