Search code examples
c#winapi.net-4.0windows-10

What's the supportedOS GUID for Windows 10?


We're detecting the OS version for statistics. Starting with Windows 8.1, the OS "lies" about its version when using GetVersion. However, System.Environment.OSVersion still calls this API as of .NET 4.5.1. As such, we've added 8.1's GUID to the manifest, which works great.

Now, I'd like to prepare the same for Windows 10. Is the GUID for this known yet?

(edit) P/Invoking VerSetConditionMask and VerifyVersionInfo to check for 6.4 or greater does appear to work.


Solution

  • <!-- This Id value indicates the application supports Windows Threshold functionality-->
    <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
    

    Source: http://social.msdn.microsoft.com/Forums/azure/en-US/07cbfc3a-bced-45b7-80d2-a9d32a7c95d4/supportedos-manifest-for-windows-10?forum=windowsgeneraldevelopmentissues