Operating system
Version number
dwMajorVersion
dwMinorVersion
Other
Windows7 |
6.1 |
6 |
1 |
OSVERIONINFOEX.wProductType == VER_NT_WORKSTATION |
Windows Server2008R2 |
6.1 |
6 |
1 |
OSVERIONINFOEX.wProductType != VER_NT_WORKSTATION |
Windows Server2008 |
6.0 |
6 |
0 |
OSVERIONINFOEX.wProductType != VER_NT_WORKSTATION |
WindowsVista |
6.0 |
6 |
0 |
OSVERIONINFOEX.wProductType == VER_NT_WORKSTATION |
Windows Server2003 R2 |
5.2 |
5 |
2 |
GetSystemMetrics(SM_SERVERR2) != 0 |
Windows Server2003 |
5.2 |
5 |
2 |
GetSystemMetrics(SM_SERVERR2) == 0 |
WindowsXP |
5.1 |
5 |
1 |
Not applicable |
Windows2000 |
5.0 |
5 |
0 |
Not applicable |
dwOSVersionInfoSize
The size of this data structure, in bytes. Set this member to sizeof(OSVERSIONINFO)
.
dwMajorVersion
The major version number of the operating system. For more information, see Remarks.
dwMinorVersion
The minor version number of the operating system. For more information, see Remarks.
dwBuildNumber
The build number of the operating system.
dwPlatformId
The operating system platform. This member can be the following value.
Value
Meaning
VER_PLATFORM_WIN32_NT2 |
The operating system is Windows Server2008, WindowsVista, Windows Server2003, WindowsXP, or Windows2000. |
szCSDVersion
A null-terminated string, such as "Service Pack 3", that indicates the latest Service Pack installed on the system. If no Service Pack has been installed, the string is empty.
dwOSVersionInfoSize
The size of this data structure, in bytes. Set this member to sizeof(OSVERSIONINFOEX)
.
dwMajorVersion
The major version number of the operating system. For more information, see Remarks.
dwMinorVersion
The minor version number of the operating system. For more information, see Remarks.
dwBuildNumber
The build number of the operating system.
dwPlatformId
The operating system platform. This member can be VER_PLATFORM_WIN32_NT (2).
szCSDVersion
A null-terminated string, such as "Service Pack 3", that indicates the latest Service Pack installed on the system. If no Service Pack has been installed, the string is empty.
wServicePackMajor
The major version number of the latest Service Pack installed on the system. For example, for Service Pack 3, the major version number is 3. If no Service Pack has been installed, the value is zero.
wServicePackMinor
The minor version number of the latest Service Pack installed on the system. For example, for Service Pack 3, the minor version number is 0.
wSuiteMask
A bit mask that identifies the product suites available on the system. This member can be a combination of the following values.
Value
Meaning
VER_SUITE_BACKOFFICE
0x00000004
|
Microsoft BackOffice components are installed. |
VER_SUITE_BLADE
0x00000400
|
Windows Server2003, Web Edition is installed. |
VER_SUITE_COMPUTE_SERVER
0x00004000
|
Windows Server2003, Compute Cluster Edition is installed. |
VER_SUITE_DATACENTER
0x00000080
|
Windows Server2008 Datacenter, Windows Server2003, Datacenter Edition, or Windows2000 Datacenter Server is installed. |
VER_SUITE_ENTERPRISE
0x00000002
|
Windows Server2008 Enterprise, Windows Server2003, Enterprise Edition, or Windows2000 Advanced Server is installed. Refer to the Remarks section for more information about this bit flag. |
VER_SUITE_EMBEDDEDNT
0x00000040
|
WindowsXP Embedded is installed. |
VER_SUITE_PERSONAL
0x00000200
|
WindowsVista Home Premium, WindowsVista Home Basic, or WindowsXP Home Edition is installed. |
VER_SUITE_SINGLEUSERTS
0x00000100
|
Remote Desktop is supported, but only one interactive session is supported. This value is set unless the system is running in application server mode. |
VER_SUITE_SMALLBUSINESS
0x00000001
|
Microsoft Small Business Server was once installed on the system, but may have been upgraded to another version of Windows. Refer to the Remarks section for more information about this bit flag. |
VER_SUITE_SMALLBUSINESS_RESTRICTED
0x00000020
|
Microsoft Small Business Server is installed with the restrictive client license in force. Refer to the Remarks section for more information about this bit flag. |
VER_SUITE_STORAGE_SERVER
0x00002000
|
Windows Storage Server2003 R2 or Windows Storage Server2003is installed. |
VER_SUITE_TERMINAL
0x00000010
|
Terminal Services is installed. This value is always set.
If VER_SUITE_TERMINAL is set but VER_SUITE_SINGLEUSERTS is not set, the system is running in application server mode.
|
VER_SUITE_WH_SERVER
0x00008000
|
Windows Home Server is installed. |
wProductType
Any additional information about the system. This member can be one of the following values.
Value
Meaning
VER_NT_DOMAIN_CONTROLLER
0x0000002
|
The system is a domain controller and the operating system is Windows Server2008, Windows Server2003, or Windows2000 Server. |
VER_NT_SERVER
0x0000003
|
The operating system is Windows Server2008, Windows Server2003, or Windows2000 Server.
Note that a server that is also a domain controller is reported as VER_NT_DOMAIN_CONTROLLER, not VER_NT_SERVER.
|
VER_NT_WORKSTATION
0x0000001
|
The operating system is WindowsVista, WindowsXP Professional, WindowsXP Home Edition, or Windows2000 Professional. |
wReserved
Reserved for future use.
分享到:
相关推荐
系统版本判断通常涉及到Windows API调用,这些API函数能提供关于操作系统的详细信息,如Windows NT、Windows XP、Windows 7、Windows 10等。 "SanYe"可能是指该资源的作者或者一个特定的易语言社区,它为用户提供了...
"汇编判断系统版本"就是这样一个功能,它涉及到操作系统版本检测的技术,通常通过调用Windows API函数来实现。 Windows API中的`GetSystemVersion`函数是用于获取系统版本的关键接口。这个函数可以帮助开发者确定...
通过上述分析,我们可以看到,利用C语言编写程序来获取Windows操作系统的版本信息、本机IP以及已安装的补丁信息,不仅需要对Winsock、Windows API有深入的理解,还需要掌握一定的网络编程和系统管理知识。...
在描述中,提及了一些关于操作PSP2000非V3主机进行系统版本修改和升级的步骤。这些步骤通常是为了绕过官方系统升级限制,使玩家能够安装自制系统或刷入不同版本的官方系统。操作过程中存在着变砖的风险,即设备可能...
本资源“powerbuilder判断64位系统.rar”主要关注如何在PowerBuilder(简称PB)环境中,针对Windows 10 64位操作系统进行有效的系统判断。这在现代软件开发中至关重要,因为随着技术的进步,越来越多的系统转向64位...
本文将深入探讨如何通过编程手段判断系统版本,特别是基于Windows平台的方法。 ### 核心概念:OSVERSIONINFO结构 在Windows API中,`OSVERSIONINFO`结构体被广泛用于获取操作系统的版本信息。这个结构体包含多个...
以下是一些相关的知识点: 1. **操作系统检测**: - **API调用**:在编程中,可以通过特定的操作系统API(Application Programming Interface)来识别正在运行的操作系统。例如,在Windows上,可以使用`...
在易语言中,获取操作系统版本主要涉及以下几个知识点: 1. **易语言基础**:首先,我们需要了解易语言的基本结构,包括程序、模块、函数和常量等。易语言的程序通常由一系列命令组成,这些命令通过特定语法连接在...
4. **条件判断**:获取到操作系统版本后,可以使用条件语句(如If...Then...Else...)来根据不同的操作系统版本执行不同的代码块。这在编写兼容多版本操作系统的程序时非常有用。 5. **字符串处理**:通常,我们...
3. 系统稳定性:通过分析系统传递函数或状态空间模型,可以判断系统是否稳定,这直接影响到系统的实用性和可靠性。 三、系统分析方法 1. 时域分析:通过微分方程或差分方程来描述系统的动态响应,例如卷积是计算...
Windows的注册表(Registry)存储了大量关于系统的配置信息。开发者也可以通过读取特定的注册表键值来判断操作系统类型。例如,`HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion` 下的`...
"黑苹果"指的是在非苹果硬件上安装的Mac OS X操作系统,这通常需要对系统配置有深入了解,并且可能涉及到一些特殊的技术步骤。标题提到的"黑苹果系统要求检测软件windows版本"是一个工具,用于在Windows环境下检查...
【知识竞赛抢答管理系统】是一个基于Java编程语言开发的应用程序,设计用于在多用户环境中进行实时的知识竞赛抢答活动。这个系统充分利用了Java的跨平台特性,使得它可以在多种操作系统上运行,确保了广泛的适用性。...
在“计算机上机考试系统 在 20090502-1530 上”这个文件中,我们可以推测这是一个关于该考试系统的历史版本或某个特定考试时段的记录。可能包含了该时段内的考试数据、考生答题情况、系统日志或者系统更新记录。这些...
尽管这种方法可以较为准确地检测出用户的浏览器类型和版本,但也存在一些局限性: 1. **兼容性和准确性问题**:由于浏览器厂商可能会修改其用户代理字符串,或者采用新的技术特性,导致上述方法不再有效。 2. **...
IBM知识雷达系统是一款基于IBM中国研究中心先进技术的智能化信息管理和检索工具,专为解决在海量互联网信息中高效获取、管理和利用专业知识的问题。系统的核心特点在于其实时性和针对性,它结合了网上代理、智能分类...
而判断一个系统是否运行在虚拟机或物理机上,有时是必要的,例如,为了测试软件兼容性或者安全检测。易语言,一种中文编程语言,被用于这个特定的场景,来创建一个程序来识别系统环境。 易语言是一种面向对象的、以...
6. **自定义消息显示**: 使用`MessageBox`命令,开发者可以向用户展示关于操作系统版本的信息,或者根据版本做出提示。 在`例.txt`文件中,可能会包含一个实际的NSIS脚本示例,展示了如何在脚本中使用这些技术来...
1. **版本兼容性**:根据操作系统版本判断是否支持当前程序,避免在不兼容的系统上运行导致错误。 2. **特性利用**:针对不同版本的操作系统,可以利用特定版本特有的API或功能。 3. **用户体验**:为不同版本的用户...