home *** CD-ROM | disk | FTP | other *** search
- 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
-
-