Slashdot Mirror


Possible Reason Behind Version Hop to Windows 10: Compatibility

First time accepted submitter ndykman (659315) writes The Independent reports that a MS developer has suggested a real reason behind the Windows 10 name: old code. More specifically, code that looks for "Windows 9" to determine the Windows version. Fine for Windows 95 or Windows 98, but not so great for a new operating system. The article includes a link that shows that yes, this would be a problem.

6 of 349 comments (clear)

  1. Re:This is Java code by Shados · · Score: 4, Informative

    Its the same thing as with the whole Document and settings vs C:\users. There's always been a good way to get it, but most developers suck balls and won't spend the 20 seconds it takes to figure it out.

  2. Re:This is Java code by thegarbz · · Score: 5, Informative

    GetVersionEx(Inout_ LPOSVERSIONINFO lpVersionInfo);
    Returns the major and minor versions, build number, platform id, service pack major and minor, and the product type.

    It basically spits out all the crap in that appears on the bottom right corner of windows when you boot up in safemode.
    Also unlike the stupid marketing names the OS versions actually make sense.

    Windows 8 returns version 6.2.

  3. I call hogwash by Excelcia · · Score: 5, Informative

    I call this hogwash. When you ask Windows what version it is in software, it doesn't return its marketing name (Windows 95, Windows 2000), it returns it's platform ID (1 for DOS based, 2 for NT based), and its version numbers in major, minor format. Windows 95 returned 4.0 (platform 1), Windows 98 returned 4.1 (platform 1). Windows 2000 returned 5.0 (platform 2).

  4. Re:I share the opinion of a Wikipedia IP editor by smpoole7 · · Score: 4, Informative

    In fact, I can't speak for the latest versions of Windows (because it has been a while since I've programmed), but even as late as Windows XP, a call to "get version" returns something completely different from the marketing version number/name.

    For example, under Windows 95, GetVersion() would return "4.0." Under XP, it reports NT 5.1 or NT 5.2.

    http://en.wikipedia.org/wiki/L...

    --
    Cogito, igitur comedam pizza.
  5. Re:How badly coded are Windows applications? by Anonymous Coward · · Score: 5, Informative

    The search in the article shows mainly Java applications.

    But the coding problem isn't specific to Windows. Opera suffers from this problem and so does every web browser that had a "version 10" that browser strings looked only for "1" or version 20 that looked for a "2" like Firefox.

    Opera still by default says its Opera 9.8

    But ultimately, garbage code needs to be thrown away and programmers need to stop doing stupid things like this.

  6. Re:Bullcrap by Your.Master · · Score: 5, Informative

    Type this into powershell:

    (Get-WmiObject Win32_OperatingSystem).Caption

    There's your marketing name.

    Took about 60 seconds of Googling to not only find this, but to find it in code that was making the same sort of error we're talking about (not literally the number 9). See this: http://ss64.com/ps/get-wmiobje... -- that's using the -match operator which is a regex comparison, and thus inferring whether it's a server build by a mismatch between the marketing name and the build name..

    Granted, I don't think powershell existed on Windows 95. I expect it's just wrapping an API that did exist. If it comes right down to it, the registry itself has the versioning information available to anybody who can use ctrl+f in regedit to find the key, and people do indeed do that.

    Trust me, MS doesn't give the slightest concern about any broken Java apps.

    No, I don't trust that statement in the slightest. Why would you think that? It's very contrary to Microsoft's behaviour in the past.

    I have no idea why they chose to name Windows "Windows 10", and I'm not convinced of this, but this is not so implausible as you seem to think.