Getting the System Version(微软官方代码)
来源:互联网 发布:如何关闭mac上篮软件 编辑:程序博客网 时间:2024/05/16 16:03
The following example uses the GetVersionEx, GetSystemMetrics, GetProductInfo, and GetNativeSystemInfofunctions to determine the version information of the currently runningoperating system. If compatibility mode is in effect, the exampledisplays the operating system selected for application compatibility. The example displays the information to the console.
To obtain the full version number for the operating system, call the GetFileVersionInfo function on one of the system DLLs, such as Kernel32.dll, then call VerQueryValue to obtain the //StringFileInfo//<lang><codepage>//ProductVersion subblock of the file version information.
Relying on version information is not the best way to test for a feature. Instead, refer to the documentation for the feature of interest. For more information on common techniques for feature detection, see Operating System Version.
If you must require a particular operating system, be sure to use it as a minimum supported version, rather than design the test for the one operating system. This way, your detection code will continue to work on future versions of Windows.
- Getting the System Version(微软官方代码)
- Getting the System Version
- Getting the System Version(获取操作系统版本)
- MSDN例子获取操作系统版本信息Getting the System Version
- [微软官方代码]Getting Started - WCF RIA Services
- Getting Started with the LLVM System
- Detecting the Operating System Version
- Getting started with the SAP Netweaver Gateway Service Consumption System
- About Domain Name System (转载至微软官方MSDN Library)
- CVS(Concurrent Version System)
- vi, getting multiple “Sorry, the command is not available in this version…” after reinstall
- Autofac官方文档翻译——(一)Getting Started
- The Yapps Parser Generator System Version 1.1
- Getting Started with Salt Stack-the Other Configuration Management System Built with Python
- Linux Annoyances for Geeks : Getting the Most Flexible System in the World Just the Way You Want It
- Subversion Version Control: Using The Subversion Version Control System in Development Projects
- CVS(Concurrent Version System)定义
- 发一份微软官方的代码注释示例
- vs 安装项目
- JPanel change
- Delphi之MIDAS三层完美解决方案----中间层构建
- Little-endian & Big-endian
- 查询及删除重复记录的方法
- Getting the System Version(微软官方代码)
- ear包的问题
- 国内所有Mail安全漏洞
- 随便记一下
- C#泛型小结
- 句句经典
- 弹出窗口功能的实现
- Windows Forms 实现安全的多线程详解
- C#下如何实现服务器+客户端的聊天程序