飘云阁

 找回密码
 加入我们

QQ登录

只需一步,快速开始

查看: 2603|回复: 0

VB编程获得IE的版本号

[复制链接]
  • TA的每日心情
    开心
    2024-6-9 16:20
  • 签到天数: 24 天

    [LV.4]偶尔看看III

    发表于 2007-10-27 13:55:17 | 显示全部楼层 |阅读模式
    下面的程序可以获得IE的版本号:
    Private Type DllVersionInfo
    cbSize As Long
    dwMajorVersion As Long
    dwMinorVersion As Long
    dwBuildNumber As Long
    dwPlatformID As Long
    End Type

    Private Declare Function DllGetVersion _
    Lib "Shlwapi.dll" _
    (dwVersion As DllVersionInfo) As Long

    Private Function GetIEVersionString() As String

    Dim DVI As DllVersionInfo

    DVI.cbSize = Len(DVI)
    Call DllGetVersion(DVI)

    GetIEVersionString = "Internet Explorer " & _
    DVI.dwMajorVersion & "." & _
    DVI.dwMinorVersion & "." & _
    DVI.dwBuildNumber

    End Function
    PYG19周年生日快乐!
    您需要登录后才可以回帖 登录 | 加入我们

    本版积分规则

    快速回复 返回顶部 返回列表