Results 1 to 4 of 4

Thread: Windows versions

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182

    Windows versions

    Just will appreciate if anyone tell what will be returned by the GetVersion() function for Windows ME.
    The code:

    Private Declare Function GetVersion Lib "kernel32" () As Long
    Public Function GetWinVersion() As String
    Dim Ver As Long, WinVer As Long
    Ver = GetVersion()
    WinVer = Ver And &HFFFF&
    GetWinVersion = Format((WinVer Mod 256) + ((WinVer \ 256) / 100), "Fixed")
    End Function

    Private Sub Form_Load()

    MsgBox "Windows version: " + GetWinVersion
    End Sub

    And for Windows XP Professional the version is 5.01. Is the Windows XP Home Edition gives the same version?

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    For Windows ME it will be: 4.90

    As for XP, I'm not sure, but it should be 5.Something for all versions.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182
    Thanks, Hobo.

  4. #4
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810
    windows 2000 is 5.00

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width