home *** CD-ROM | disk | FTP | other *** search
/ Dan Appleman's Visual Bas…s Guide to the Win32 API / Dan.Applmans.Visual.Basic.5.0.Programmers.Guide.To.The.Win32.API.1997.Ziff-Davis.Press.CD / VB5PG32.mdf / vbpg32 / samples5 / ch01 / ch01.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-10-31  |  745 b   |  25 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Chapter 1 Example"
  4.    ClientHeight    =   4815
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1515
  7.    ClientWidth     =   5940
  8.    LinkTopic       =   "Form1"
  9.    PaletteMode     =   1  'UseZOrder
  10.    ScaleHeight     =   4815
  11.    ScaleWidth      =   5940
  12. Attribute VB_Name = "Form1"
  13. Attribute VB_GlobalNameSpace = False
  14. Attribute VB_Creatable = False
  15. Attribute VB_PredeclaredId = True
  16. Attribute VB_Exposed = False
  17. Option Explicit
  18. Private Sub Form_Click()
  19.     Dim ms As MEMORYSTATUS
  20.     ms.dwLength = Len(ms)
  21.     GlobalMemoryStatus ms
  22.     Print "Total physical memory: "; ms.dwTotalPhys
  23.     Print "Available physical memory: "; ms.dwAvailPhys
  24. End Sub
  25.