home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Chapter 1 Example"
- ClientHeight = 4815
- ClientLeft = 1095
- ClientTop = 1515
- ClientWidth = 5940
- Height = 5220
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 4815
- ScaleWidth = 5940
- Top = 1170
- Width = 6060
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Click()
- Dim ms As MEMORYSTATUS
- ms.dwLength = Len(ms)
- GlobalMemoryStatus ms
- Print "Total physical memory: "; ms.dwTotalPhys
- Print "Available physical memory: "; ms.dwAvailPhys
- End Sub
-