home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "SI System Info Server Test Program"
- ClientHeight = 3030
- ClientLeft = 1140
- ClientTop = 2190
- ClientWidth = 4800
- Height = 3435
- Left = 1080
- LinkTopic = "Form1"
- ScaleHeight = 3030
- ScaleWidth = 4800
- Top = 1845
- Width = 4920
- Begin VB.CommandButton Command1
- Caption = "SysInfo Dialog"
- Height = 615
- Index = 1
- Left = 2520
- TabIndex = 1
- Top = 1080
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "User Name"
- Height = 615
- Index = 0
- Left = 840
- TabIndex = 0
- Top = 1080
- Width = 1455
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click(Index As Integer)
- Dim SI As New siClass
- Select Case Index
- Case 0
- MsgBox SI.siUserName$
- ' MsgBox SI.SIAvailPhysMem&
- ' MsgBox SI.SIAvailPhysMem&
- Case 1
- SI.DisplaySIDialog
- End Select
- Set SI = Nothing
- '*** exposed method ***
- 'DisplaySIDialog--displays modal system info dialog
- ' *** exposed read-only properties ***
- 'siUserName$
- 'siComputerName$
- 'siWinVers$
- 'siMemLoad&
- 'siTotalPhysMem&
- 'siAvailPhysMem&
- 'siTotalVirtMem&
- 'siAvailVirtMem&
- 'siFreeSpace&(Drive$)
- End Sub
-