Window版本
来源:互联网 发布:warframe防火墙端口 编辑:程序博客网 时间:2024/06/03 00:00
http://blog.csdn.net/wjkaola123/article/details/51721348
GetVersionEx, 该方法在WIN8.1以后无效 参看: https://msdn.microsoft.com/en-us/library/ms724451.aspx
microsoft提供的版本帮助
https://msdn.microsoft.com/en-us/library/dn424972.aspx
Version Helper functions
The following functions can be used to determine the current operating system version or identify whether it is a Windows or Windows Server release. These functions provide simple tests that use the VerifyVersionInfo function and the recommended greater than or equal to comparisons that are proven as a robust means to determine the operating system version.
Indicates if the current OS version matches, or is greater than, the Windows XP version.
IsWindowsXPSP1OrGreaterIndicates if the current OS version matches, or is greater than, the Windows XP with Service Pack 1 (SP1) version.
IsWindowsXPSP2OrGreaterIndicates if the current OS version matches, or is greater than, the Windows XP with Service Pack 2 (SP2) version.
IsWindowsXPSP3OrGreaterIndicates if the current OS version matches, or is greater than, the Windows XP with Service Pack 3 (SP3) version.
IsWindowsVistaOrGreaterIndicates if the current OS version matches, or is greater than, the Windows Vista version.
IsWindowsVistaSP1OrGreaterIndicates if the current OS version matches, or is greater than, the Windows Vista with Service Pack 1 (SP1) version.
IsWindowsVistaSP2OrGreaterIndicates if the current OS version matches, or is greater than, the Windows Vista with Service Pack 2 (SP2) version.
IsWindows7OrGreaterIndicates if the current OS version matches, or is greater than, the Windows 7 version.
IsWindows7SP1OrGreaterIndicates if the current OS version matches, or is greater than, the Windows 7 with Service Pack 1 (SP1) version.
IsWindows8OrGreaterIndicates if the current OS version matches, or is greater than, the Windows 8 version.
IsWindows8Point1OrGreaterIndicates if the current OS version matches, or is greater than, the Windows 8.1 version.
For Windows 10, IsWindows8Point1OrGreater returns false unless the application contains a manifest that includes a compatibility section that contains the GUIDs that designate Windows 8.1 and/or Windows 10.
IsWindows10OrGreaterIndicates if the current OS version matches, or is greater than, the Windows 10 version.
For Windows 10, IsWindows10OrGreater returns false unless the application contains a manifest that includes a compatibility section that contains the GUID that designates Windows 10.
IsWindowsServerIndicates if the current OS is a Windows Server release. Applications that need to distinguish between server and client versions of Windows should call this function.
IsWindowsVersionOrGreaterIndicates if the current OS version matches, or is greater than, the provided version information. This function is useful in confirming a version of Windows Server that doesn't share a version number with a client release.
Example
The inline functions defined in the VersionHelpers.h header file let you verify the operating system version by returning a Boolean value when testing for a version of Windows.
For example, if your application requires Windows 8 or later, use the following test.
#include <VersionHelpers.h>… if (!IsWindows8OrGreater()) { MessageBox(NULL, "You need at least Windows 8", "Version Not Supported", MB_OK); }
Related topics
- OSVERSIONINFOEX
- Window版本
- 检测window版本
- vc获取window版本
- redis window版本
- window版本的生日快乐
- window的版本宏
- Window OpenGL 程序C++版本
- Sleeping Barber Window版本实现
- window下node版本管理
- Window查看apache的版本
- svn window版本服务器端安装
- 获取window系统版本GetVersionEx
- Window下搭建SVN版本控制
- EasyUI window显示异常 (版本差异)
- window跟linux下代码版本区分
- eclipse window版本 console没有输出解决办法?
- ffmpeg 各个版本 编译 on window
- Android Studio体验(一)--Window版本安装
- SAP中用json数据格式调用http接口发送短信邮件案例
- usb安装ubuntu
- 白书高斯消元模板
- Linux mysql
- BZOJ 2005 [Noi2010]能量采集
- Window版本
- leetcode 53. Maximum Subarray
- maven 仓库配置 pom中repositories属性
- oracel dblink的简单使用
- Choosing a classification Algorithm
- 51nod 1413 权势二进制
- Leetcode 73. Set Matrix Zeroes
- 问题 C: QAQ & 火星情报局
- API学习Scanner