WIN2003 = 152,\r
VISTA = 160,\r
WIN7 = 161,\r
+ WIN8 = 162,\r
}\r
\r
public class Platform\r
}\r
\r
PlatformOSType? thisOs = GetOSType();\r
+\r
+ // 当分の間、Windows 8 (仮称) は Windows 7 のアプリは使えるようにしておく\r
+ if (thisOs.HasValue && thisOs.Value == PlatformOSType.WIN8) {\r
+ return Array.BinarySearch(OsType, PlatformOSType.WIN7)\r
+ || Array.BinarySearch(OsType, PlatformOSType.WIN8);\r
+ }\r
+\r
return thisOs != null && Array.BinarySearch(OsType, (PlatformOSType) thisOs) >= 0;\r
}\r
\r
return PlatformOSType.VISTA;\r
case 1:\r
return PlatformOSType.WIN7;\r
+ case 2:\r
+ return PlatformOSType.WIN8;\r
}\r
}\r
break;\r