如何区分Windows 7和Windows 2008 R2

Flo*_*ian 8 c#

我需要区分Windows 7和Windows 2008 R2,但我不知道如何.OS Version属性返回相同的数字"6.1.7600.0"

问候,

弗洛里安

Iai*_*ard 11

使用GetProductInfo,Windows 7和Windows Server 2008 R2具有不同的产品类型编号.

替代文字

资源