home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Programmer'…arterly (Limited Edition)
/
Visual_Basic_Programmers_Journal_VB-CD_Quarterly_Limited_Edition_1995.iso
/
code
/
ch14code
/
chksys.bas
< prev
next >
Wrap
BASIC Source File
|
1995-08-12
|
791b
|
23 lines
Attribute VB_Name = "Module1"
' Global flags section.
Public gDisableAdvanced As Boolean
Sub Main()
Dim System As Object
' You must compile and register the SYSTEM.VBP
' project before the following line will run.
' See the Chapter 21 directory for SYSTEM.VBP.
Set System = CreateObject("WinAPI.Information")
' Check the system criteria.
If System.MeetsCriteria(486, 8) = False Then
' Set flag to disable some features.
gbDisableAdvanced = True
' Notify user.
MsgBox ("Your computer does not meet the minimum requirements " & _
"of 8 megabytes memory and 486 or later processor. " & _
"Some features have been disabled.")
Else
gbDisableAdvanced = False
End If
End Sub