How to check in delphi the OS version? Windows 7 or Server 2008 R2?
问题 I always used to check the windows versions by their major/minor build numbers. Strangely enough, Windows 7 and Server 2008 R2, both return the same major/minor version number combination. Confirm this by typing ver into a command prompt 回答1: GetVersionEx. There is a chart of the version numbers and their associated editions here. Notice that the product type is different between 2008 R2 and Windows 7. 回答2: This works, and correctly detects many Windows Product Editions, including Windows XP,