vbAccelerator - Contents of code file: mMain.bas
Attribute VB_Name = "mMain"
Option Explicit
Private Declare Function GetVersion Lib "kernel32" () As Long
Private Declare Sub InitCommonControls Lib "comctl32" ()
Public Sub GetWindowsVersion( _
Optional ByRef lMajor = 0, _
Optional ByRef lMinor = 0, _
Optional ByRef lRevision = 0, _
Optional ByRef lBuildNumber = 0, _
Optional ByRef bIsNt = False _
)
Dim lR As Long
lR = GetVersion()
lBuildNumber = (lR And &H7F000000) \ &H1000000
If (lR And &H80000000) Then lBuildNumber = lBuildNumber Or &H80
lRevision = (lR And &HFF0000) \ &H10000
lMinor = (lR And &HFF00&) \ &H100
lMajor = (lR And &HFF)
bIsNt = ((lR And &H80000000) = 0)
End Sub
Public Sub Main()
InitCommonControls
Dim f As New frmGuiResTrace
f.Show
End Sub
|
|