What's the supportedOS GUID for Windows 10?

后端 未结 2 1092
野趣味
野趣味 2021-01-01 17:07

We\'re detecting the OS version for statistics. Starting with Windows 8.1, the OS \"lies\" about its version when using GetVersion. However, System.Enviro

2条回答
  •  不思量自难忘°
    2021-01-01 17:40

    Other GUIDs for other OS contexts:

    | OS              | GetVersionEx | supportedOS Id                                             |
    |-----------------|--------------|------------------------------------------------------------|
    | Windows 10      | 10.0*        |  |
    | Windows 8.1     | 6.3          |  |
    | Windows 8       | 6.2          |  |
    | Windows 7       | 6.1          |  |
    | Windows Vista   | 6.0          |  |
    | Windows XP      | 5.1          | n/a                                                        |
    | Windows 2000    | 5.0          | n/a                                                        |
    | Windows NT 4    | 4.0          | n/a                                                        |
    | Windows NT 3.51 | 3.51         | n/a                                                        |
    | Windows NT 3.1  | 3.1          | n/a                                                        |
    

    * was 6.4 prior to build 9926. After build 9926 it reports 10.0

    The page that maintains the documentation for these values:

    • Application Manifests (archive)

    When running on Windows 10

    | OS Context    | GetVersionEx |
    |---------------|--------------|
    | Windows Vista | 6.2          |
    | Windows 7     | 6.2          |
    | Windows 8     | 6.2          |
    | Windows 8.1   | 6.3          |
    | Windows 10    | 10.0         |
    

提交回复
热议问题