Declare Function GetVersion Lib "kernel32" Alias "GetVersion" () As Long
来源:互联网 发布:那家博客公司数据准确 编辑:程序博客网 时间:2024/06/13 21:14
GetVersion
VB声明
Declare Function GetVersion Lib "kernel32" Alias "GetVersion" () As Long
说明
判断当前运行的Windows和DOS版本
返回值
Long,低16位包含了windows版本;低字节包含了主版本号(3代表windows 3.10,4代表nt 4.0);高字节包含了两个数位的辅助版本号(10代表windows 3.10,95代表windows 95)。高16位则包含了平台信息。针对windows NT,高位设为0;针对windows for workgroups上运行的Win32s,则高位为1
注解
在win32下,最好换用GetVersionEx函数。在win32下,高字不会返回DOS版本
- 开放分类:
- API函数 VB VC++
- Declare Function GetVersion Lib "kernel32" Alias "GetVersion" () As Long
- GetVersion
- vb用户定义类型未定义: Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long ;
- function GetVersion(sFile: string; bIncludeBuild: boolean): string;
- GetVersion与GetVersionExW/A
- GetVersion和GetVersionEx
- GetVersion和GetVersionEx
- GetVersion和GetVersionEx
- GetVersion 获取系统版本号
- GetVersion和GetVersionEx函数详解
- Windows API学习(2)-GetVersion
- CMEM Error: getVersion: Failed to retrieve version
- 从Entry Point到main函数调用(2):GetVersion
- 获取Windwos的版本和名称 -- GetVersion|GetVersionEx
- 从Entry Point到main函数调用(2):GetVersion
- 从Entry Point到main函数调用(2):GetVersion
- 使用VS2013,编译提示"GetVersion"被声明为否决的
- 获取Windwos的版本和名称 -- GetVersion|GetVersionEx
- GetVersion和GetVersionEx
- c# TextBox用法
- ucgui 移植(裸奔)
- 关于运行错误:java.lang.UnsupportedClassVersionError: Bad version number in .class file
- 黑马程序员_筛选DataTable中的数据,批量导入到数据库中
- Declare Function GetVersion Lib "kernel32" Alias "GetVersion" () As Long
- Java开发中的23种设计模式
- OGNL
- 黑马程序员——委托的基本使用
- TCp / Ip 简介
- 读取xml节点
- 黑马程序员——Sql Server 2008 创建job步骤
- C++即时通讯实现原理及常见问题
- java经典面试题