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

WAD Windows 10 - ver command

Discussion in 'TCC/LE Support' started by gadib, Jul 22, 2015.

  1. gadib

    Joined:
    Jul 23, 2008
    Messages:
    22
    Likes Received:
    0
    Hi,

    When I issue the ver/r command under windows 10 the message says that I am running windows 8 build 9200

    TCC/LE 13.06.77 x64

    Gadi
     
  2. fromano

    Joined:
    May 20, 2008
    Messages:
    110
    Likes Received:
    0
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,804
    Likes Received:
    82
    In the most recent Windows 10 betas, Microsoft changed the Windows 10 version APIs to return 6.3 (i.e., Windows 8.1). I don't know if this was deliberate (albeit undocumented) or a mistake.
     
  4. smf

    smf

    Joined:
    Aug 3, 2015
    Messages:
    10
    Likes Received:
    0
    GetVersionEx has been broken by design since 8.1 was released as it now reports looks at the manifest and returns the highest supported os in your application, or Windows 8 if none are supported.

    https://msdn.microsoft.com/en-us/library/windows/desktop/ms724451(v=vs.85).aspx

    You can either add every <supportedOS> tags to your manifest, or use something like https://bitbucket.org/AnyCPU/findversion/src

    I'd go for the former as I believe you then get the latest functionality from all API's, but you'd need to test to make sure nothing is broken.
     
  5. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,287
    Likes Received:
    39
    Flashing back to MS-DOS, which had an API to report the DOS version... and a device driver to lie about the DOS version... and another API to report the real DOS version; and of course DR-DOS had its own DOS-version API, because it pretended to be PC DOS on both the documented APIs. Wheel turnin' round and round, you go back, Jack, do it again....
     
  6. smf

    smf

    Joined:
    Aug 3, 2015
    Messages:
    10
    Likes Received:
    0
    At least this time round there isn't one single list of programs and version numbers to lie about, if you setup your application manifest correctly then windows will report the correct version to you. If you haven't released a windows 10 compatible version of your application then lying to you and pretending to be a version of windows that you do support seems like a reasonable compromise.

    My OCD side thinks it shouldn't lie, but I understand the practical reason for doing it and putting in a ReallyGetVersionEx would undermine it.
     
  7. gadib

    Joined:
    Jul 23, 2008
    Messages:
    22
    Likes Received:
    0
    This has been fixed in tcc/le v14
     

Share This Page