Windows 8.1 和 Windows Server 2012 R2, 大小版本号是相同的,都是6.3,如何区分
调用 GetWindowsVersionEx,获取 TWindowsVersion 结构体,其中 ProductType 是 VER_NT_SERVER 的是 Windows Server 2012 R2.
The ProductType field can be one of the following values:
VER_NT_WORKSTATION VER_NT_DOMAIN_CONTROLLER VER_NT_SERVER
It can also be zero if the product type could not be determined (unlikely). VER_NT_WORKSTATION indicates a non-server edition of Windows (e.g. Workstation, Professional, or Home).