| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_WIN_WINDOWS_VERSION_H_ | 5 #ifndef BASE_WIN_WINDOWS_VERSION_H_ |
| 6 #define BASE_WIN_WINDOWS_VERSION_H_ | 6 #define BASE_WIN_WINDOWS_VERSION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 enum Version { | 27 enum Version { |
| 28 VERSION_PRE_XP = 0, // Not supported. | 28 VERSION_PRE_XP = 0, // Not supported. |
| 29 VERSION_XP = 1, | 29 VERSION_XP = 1, |
| 30 VERSION_SERVER_2003 = 2, // Also includes XP Pro x64 and Server 2003 R2. | 30 VERSION_SERVER_2003 = 2, // Also includes XP Pro x64 and Server 2003 R2. |
| 31 VERSION_VISTA = 3, // Also includes Windows Server 2008. | 31 VERSION_VISTA = 3, // Also includes Windows Server 2008. |
| 32 VERSION_WIN7 = 4, // Also includes Windows Server 2008 R2. | 32 VERSION_WIN7 = 4, // Also includes Windows Server 2008 R2. |
| 33 VERSION_WIN8 = 5, // Also includes Windows Server 2012. | 33 VERSION_WIN8 = 5, // Also includes Windows Server 2012. |
| 34 VERSION_WIN8_1 = 6, // Also includes Windows Server 2012 R2. | 34 VERSION_WIN8_1 = 6, // Also includes Windows Server 2012 R2. |
| 35 VERSION_WIN10 = 7, // Also includes Windows 10 Server. | 35 VERSION_WIN10 = 7, // Also includes Windows 10 Server. |
| 36 VERSION_WIN10_TH2 = 8, // Threshold 2: Version 1511, Build 10586. | 36 VERSION_WIN10_TH2 = 8, // Threshold 2: Version 1511, Build 10586. |
| 37 VERSION_WIN10_R1 = 9, // Redstone 1: Version 1607, Build 14393. | 37 VERSION_WIN10_RS1 = 9, // Redstone 1: Version 1607, Build 14393. |
| 38 VERSION_WIN10_RS2 = 10, // Redstone 2: Version 1703, Build 15063. |
| 38 VERSION_WIN_LAST, // Indicates error condition. | 39 VERSION_WIN_LAST, // Indicates error condition. |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 // A rough bucketing of the available types of versions of Windows. This is used | 42 // A rough bucketing of the available types of versions of Windows. This is used |
| 42 // to distinguish enterprise enabled versions from home versions and potentially | 43 // to distinguish enterprise enabled versions from home versions and potentially |
| 43 // server versions. | 44 // server versions. |
| 44 enum VersionType { | 45 enum VersionType { |
| 45 SUITE_HOME, | 46 SUITE_HOME, |
| 46 SUITE_PROFESSIONAL, | 47 SUITE_PROFESSIONAL, |
| 47 SUITE_SERVER, | 48 SUITE_SERVER, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 // Because this is by far the most commonly-requested value from the above | 135 // Because this is by far the most commonly-requested value from the above |
| 135 // singleton, we add a global-scope accessor here as syntactic sugar. | 136 // singleton, we add a global-scope accessor here as syntactic sugar. |
| 136 BASE_EXPORT Version GetVersion(); | 137 BASE_EXPORT Version GetVersion(); |
| 137 | 138 |
| 138 } // namespace win | 139 } // namespace win |
| 139 } // namespace base | 140 } // namespace base |
| 140 | 141 |
| 141 #endif // BASE_WIN_WINDOWS_VERSION_H_ | 142 #endif // BASE_WIN_WINDOWS_VERSION_H_ |
| OLD | NEW |