|
-
Jun 6th, 2002, 04:24 PM
#1
Thread Starter
Addicted Member
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|