home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today (BR) Volume 2 #4
/
CDRTV2N4.iso
/
is32.bas
< prev
next >
Wrap
BASIC Source File
|
1996-03-11
|
814b
|
38 lines
Declare Function GetWinPlatform Lib "STKIT416.DLL" () As Long
Function IsVer32 () As Integer
If IsWindows95() Or IsWindowsNT() Then
IsVer32 = True
Else
IsVer32 = False
End If
End Function
Function IsWindows95 () As Integer
'**********************************************************
Const dwMask95 = &H2&
If Right$(path, 1) <> "\" Then
ChDir path + "\"
Else
ChDir path
End If
ChDir "\"
If GetWinPlatform() And dwMask95 Then
IsWindows95 = True
Else
IsWindows95 = False
End If
End Function
Function IsWindowsNT () As Integer
Const dwMaskNT = &H1&
If GetWinPlatform() And dwMaskNT Then
IsWindowsNT = True
Else
IsWindowsNT = False
End If
End Function