• AnyOldName3@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    8 hours ago

    If you’re checking for Windows 9 in order to disable features, which is what the jump straight to ten was supposed to protect against (when running a 16-bit binary for 3.1/95 on 32-bit Windows 10, it lies and says it’s Windows 98), then you’re using at least the Windows 2000 SDK, which provided GetVersion, which includes the build and revision numbers in its return value, and the revision number was increased over 7000 times by updates to Windows 2000.

    • Test_Tickles@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      Ya, that is what I thought, but skipped because I couldn’t remember for sure. GetVersion didn’t even exist until win2k, so everyone already had their code that checked version numbers written and squared away. They never needed to go back and change it or read the new documentation.