Results 1 to 4 of 4

Thread: Windows version numbers?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    Windows version numbers?

    Does anyone know the equivalent version numbers for Windows NT 3 and 4?

    I think the following is correct:

    Win95 = 4.0
    Win95b = 4.0b
    Win98 = 4.10
    Win98SE = 4.10a
    WinME = 4.90
    WinNT3 = ?
    WinNT4 = ?
    Win2K = 5.0
    WinXP = 5.1

    Any help would be appreciated.

    Visual Studio 2010

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    Here's some code that returns the Windows version, it doesn't seem to relate fully to what you specified (only NT based versions link to the numbers you stated, and XP is different - but this part of the code may be wrong)
    VB Code:
    1. Private Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (ByRef lpVersionInformation As OSVERSIONINFO) As Long
    2.  
    3. Private Type OSVERSIONINFO
    4.     dwOSVersionInfoSize As Long
    5.     dwMajorVersion As Long
    6.     dwMinorVersion As Long
    7.     dwBuildNumber As Long
    8.     dwPlatformId As Long
    9.     szCSDVersion As String * 128
    10. End Type
    11.  
    12. Private Const VER_PLATFORM_WIN32s = 0
    13. Private Const VER_PLATFORM_WIN32_WINDOWS = 1
    14. Private Const VER_PLATFORM_WIN32_NT = 2
    15.  
    16. Private Function LoWord(lngIn As Long) As Integer
    17.    If (lngIn And &HFFFF&) > &H7FFF Then
    18.       LoWord = (lngIn And &HFFFF&) - &H10000
    19.    Else
    20.       LoWord = lngIn And &HFFFF&
    21.    End If
    22. End Function
    23.  
    24. Public Function WinVersion(Optional show_version As Boolean = True, _
    25.                            Optional show_build As Boolean = True) As String
    26. 'Returns Windows version & build
    27.  
    28. Dim version As OSVERSIONINFO
    29. Dim strPlatform As String
    30.  
    31.     version.dwOSVersionInfoSize = Len(version)
    32.     GetVersionEx version
    33.  
    34.     If version.dwPlatformId = VER_PLATFORM_WIN32s Then
    35.       strPlatform = "Microsoft Windows 32s "
    36.  
    37.     ElseIf version.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then
    38.       Select Case version.dwMinorVersion
    39.       Case 0
    40.               If LoWord(version.dwBuildNumber) = 1111 Then
    41.                 strPlatform = "Microsoft Windows 95B "
    42.               Else
    43.                 'If LoWord(version.dwBuildNumber) = 950 Then
    44.                 strPlatform = "Microsoft Windows 95 "
    45.               End If
    46.       Case 10
    47.               If LoWord(version.dwBuildNumber) = 2222 Then
    48.                 strPlatform = "Microsoft Windows 98 SE "
    49.               Else
    50.               'if LoWord(version.dwBuildNumber) = 1998 Then
    51.                 strPlatform = "Microsoft Windows 98 "
    52.               End If
    53.       Case 90
    54.               'if LoWord(version.dwBuildNumber) = 3000 Then
    55.               strPlatform = "Microsoft Windows ME "
    56.       End Select
    57.  
    58.     ElseIf version.dwPlatformId = VER_PLATFORM_WIN32_NT Then
    59.       Select Case version.dwMajorVersion
    60.       Case 3:      strPlatform = "Microsoft Windows NT 3.51 "
    61.       Case 5:      strPlatform = "Microsoft Windows 2000 "
    62.       Case 6:      strPlatform = "Microsoft Windows XP "
    63.       Case Else:   strPlatform = "Microsoft Windows NT "  '(was 4, best for any others!)
    64.       End Select
    65.     End If
    66.  
    67.     WinVersion = strPlatform _
    68.                & IIf(show_version, "v" & Format(version.dwMajorVersion) & "." & Format(version.dwMinorVersion), "") _
    69.                & IIf(show_build, " (Build " & LoWord(version.dwBuildNumber) & ")", "")
    70.  
    71. End Function

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I think NT3 is 3.51.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Fanatic Member VisionIT's Avatar
    Join Date
    Nov 2002
    Location
    Workin'...
    Posts
    718
    Originally posted by Sastraxi
    I think NT3 is 3.51.
    Agreed.

    Regards,

    Paul.

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