Article ID: 122353
Article Last Modified on 12/9/2003
Const WF_WINNT = &H4000&
Declare Function GetWinFlags Lib "KERNEL" () As Long
Function IsWindowsNT() As Integer
IsWindowsNT = (GetWinFlags() And WF_WINNT)
End Function
Sub Command1_Click()
If IsWindowsNT() Then
MsgBox "You are running under Windows NT"
Else
MsgBox "You are running under Windows version 3.x"
End If
End Sub
Additional query words: 2.00 3.00
Keywords: kbhowto kbenv KB122353