1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting OS name in VC++

Discussion in 'C++' started by rag84dec, May 31, 2009.

  1. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    HI all,

    There is one problem with VC++.The minor number and major number for "Vista" and "Windows 2008 server" are same.So, in order to distinguish between the two wProductType should be used.But winbase.h packaged with vc++ 6.0, wProductType field is not available.

    My question is ... Is there any other way of getting the Proper OS name ?.

    Thanks in advance...
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
  3. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    This is what i have done. But your code does not mention how i will differentiate between Vista and Wind 2008 server through some other method . since productid is not supported in the OSVERSIONINFOEX.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Probably because when I wrote I did not had that OS and so table probably needs upgrade.
     

Share This Page