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 / samples4 / ch01 / ch01.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-02-16  |  750 b   |  26 lines

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