使用Vista中的一个API:GetProductInfo中可以获取到Vista的所有版本信息,总共可以探测到25个不同版本。
真的有这么多?其实,称为Vista的并没有这么多,这其中包括了Windows Server "Longhorn"(正式版未必会有Vista的称谓)。
ValueMeaning
PRODUCT_BUSINESS
0x00000006 Windows Vista Business
PRODUCT_BUSINESS_N
0x00000010 TBD
PRODUCT_CLUSTER_SERVER
0x00000012 TBD
PRODUCT_DATACENTER_SERVER
0x00000008 Windows Server "Longhorn", Datacenter Edition (Full installation)
PRODUCT_DATACENTER_SERVER_CORE
0x0000000C Windows Server "Longhorn", Datacenter Edition (Server Core installation)
PRODUCT_ENTERPRISE
0x00000004 Windows Vista Enterprise
PRODUCT_ENTERPRISE_SERVER
0x0000000A Windows Server "Longhorn", Enterprise Edition (Full installation)
PRODUCT_ENTERPRISE_SERVER_CORE
0x0000000E Windows Server "Longhorn", Enterprise Edition (Server Core installation)
PRODUCT_ENTERPRISE_SERVER_IA64
0x0000000F Windows Server "Longhorn", Enterprise Edition for Itanium-based Systems
PRODUCT_HOME_BASIC
0x00000002 Windows Vista Home Basic
PRODUCT_HOME_BASIC_N
0x00000005 TBD
PRODUCT_HOME_PREMIUM
0x00000003 Windows Vista Home Premium
PRODUCT_HOME_SERVER
0x00000013 TBD
PRODUCT_SERVER_FOR_SMALLBUSINESS
0x00000018 TBD
PRODUCT_SMALLBUSINESS_SERVER
0x00000009 TBD
PRODUCT_SMALLBUSINESS_SERVER_PREMIUM
0x00000019 TBD
PRODUCT_STANDARD_SERVER
0x00000007 Windows Server "Longhorn" (Full installation)
PRODUCT_STANDARD_SERVER_CORE
0x0000000D Windows Server "Longhorn" (Server Core installation)
PRODUCT_STARTER
0x0000000B TBD
PRODUCT_STORAGE_ENTERPRISE_SERVER
0x000000 TBD
PRODUCT_STORAGE_EXPRESS_SERVER
0x00000014 TBD
PRODUCT_STORAGE_STANDARD_SERVER
0x00000015 TBD
PRODUCT_STORAGE_WORKGROUP_SERVER
0x00000016 TBD
PRODUCT_ULTIMATE
0x00000001 Windows Vista Ultimate
PRODUCT_WEB_SERVER
0x00000011 TBD