home *** CD-ROM | disk | FTP | other *** search
- DefInt A-Z
- Declare Function GetWindowsDirectory Lib "Kernel" (ByVal Buff$, ByVal sizeBuf)
- Declare Function GetSystemDirectory Lib "Kernel" (ByVal Buff$, ByVal sizeBuf)
-
- Const GCW_HMODULE = -16
-
- Const WF_CPU286 = &H2
- Const WF_CPU386 = &H4
- Const WF_CPU486 = &H8
- Const WF_STANDARD = &H10
- Const WF_ENHANCED = &H20
- Const WF_8087 = &H400
-
- Function CPU ()
- Match = 1
- Select Case Match
- Case (Flags& And WF_CPU486) \ WF_CPU486
- CPU = 486
- Case (Flags& And WF_CPU386) \ WF_CPU386
- CPU = 386
- Case Else
- CPU = 286
- End Select
- End Function
-
- Function EXEName$ ()
- Wnd = Screen.ActiveForm.hWnd
- Buff$ = Space$(255)
- EXEName$ = Left$(Buff$, TChars)
- End Function
-
- Function FKeys ()
- End Function
-
- Function FreeMem& ()
- End Function
-
- Function KBSubType ()
- End Function
-
- Function KBType ()
- End Function
-
- Function MathChip ()
- Flags& = GetWinFlags&
- If Flags& And WF_8087 Then
- MathChip = True
- Else
- MathChip = False
- End If
- End Function
-
- Function Mode ()
- Flags& = GetWinFlags&
- If Flags& And WF_ENHANCED Then
- Mode = WF_ENHANCED
- Else
- Mode = WF_STANDARD
- End If
- End Function
-
- Function SysDir$ ()
- Buff$ = Space$(255)
- SysDir$ = Left$(Buff$, TChars)
- End Function
-
- Function WinDir$ ()
- Buff$ = Space$(255)
- TChars = GetWindowsDirectory(Buff$, 255)
- WinDir$ = Left$(Buff$, TChars)
- End Function
-
- Function WinVer ()
- End Function
-
-