home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmAbout
- BackColor = &H00FFFFFF&
- BorderStyle = 3 'Fixed Double
- ClientHeight = 5595
- ClientLeft = 1200
- ClientTop = 840
- ClientWidth = 6495
- ControlBox = 0 'False
- Height = 6000
- Icon = ABOUT.FRX:0000
- KeyPreview = -1 'True
- Left = 1140
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 5595
- ScaleWidth = 6495
- Top = 495
- Width = 6615
- Begin PictureBox picProductIcon
- BorderStyle = 0 'None
- Height = 615
- Left = 210
- Picture = ABOUT.FRX:0302
- ScaleHeight = 615
- ScaleWidth = 555
- TabIndex = 34
- Top = 360
- Width = 555
- End
- Begin Frame Frame3
- Caption = "Module"
- Height = 1065
- Left = 375
- TabIndex = 3
- Top = 1380
- Width = 5790
- Begin Label lblModId
- AutoSize = -1 'True
- Caption = "Module Id goes here"
- Height = 195
- Left = 1725
- TabIndex = 4
- Top = 300
- Width = 1755
- End
- Begin Label lblModSize
- AutoSize = -1 'True
- Caption = "Module size goes here"
- Height = 195
- Left = 1725
- TabIndex = 5
- Top = 525
- Width = 1920
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Module Id:"
- Height = 195
- Index = 0
- Left = 225
- TabIndex = 6
- Top = 300
- Width = 1440
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Size:"
- Height = 195
- Index = 1
- Left = 225
- TabIndex = 7
- Top = 525
- Width = 1440
- End
- Begin Label lblModDate
- AutoSize = -1 'True
- Caption = "Module date goes here"
- Height = 195
- Left = 1725
- TabIndex = 8
- Top = 750
- Width = 1965
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Date/Time:"
- Height = 195
- Index = 2
- Left = 225
- TabIndex = 18
- Top = 750
- Width = 1440
- End
- End
- Begin Frame Frame2
- Caption = "Environment"
- Height = 1740
- Left = 375
- TabIndex = 26
- Top = 2400
- Width = 5790
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Current directory:"
- Height = 195
- Index = 12
- Left = 150
- TabIndex = 19
- Top = 1425
- Width = 1515
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "c:\this\is\current\dir"
- Height = 195
- Index = 9
- Left = 1725
- TabIndex = 20
- Top = 1425
- Width = 1785
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "System directory:"
- Height = 195
- Index = 11
- Left = 165
- TabIndex = 21
- Top = 1200
- Width = 1500
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "c:\this\is\system\dir"
- Height = 195
- Index = 8
- Left = 1725
- TabIndex = 22
- Top = 1200
- Width = 1755
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "9.9a"
- Height = 195
- Index = 6
- Left = 1725
- TabIndex = 23
- Top = 525
- Width = 390
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "DOS version:"
- Height = 195
- Index = 9
- Left = 75
- TabIndex = 24
- Top = 525
- Width = 1590
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Processor:"
- Height = 195
- Index = 8
- Left = 75
- TabIndex = 25
- Top = 300
- Width = 1590
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "X0X86"
- Height = 195
- Index = 5
- Left = 1725
- TabIndex = 27
- Top = 300
- Width = 570
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Windows directory:"
- Height = 195
- Index = 10
- Left = 30
- TabIndex = 28
- Top = 975
- Width = 1635
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "c:\this\is\win\dir"
- Height = 195
- Index = 7
- Left = 1725
- TabIndex = 29
- Top = 975
- Width = 1470
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Windows version:"
- Height = 195
- Index = 6
- Left = 75
- TabIndex = 30
- Top = 750
- Width = 1590
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "9.9a"
- Height = 195
- Index = 4
- Left = 1725
- TabIndex = 31
- Top = 750
- Width = 390
- End
- End
- Begin Frame Frame1
- Caption = "Free Resources"
- Height = 1290
- Left = 375
- TabIndex = 17
- Top = 4125
- Width = 5790
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Memory:"
- Height = 195
- Index = 3
- Left = 150
- TabIndex = 9
- Top = 300
- Width = 1515
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "9,999,999,999 bytes."
- Height = 195
- Index = 0
- Left = 1725
- TabIndex = 10
- Top = 300
- Width = 1815
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "System:"
- Height = 195
- Index = 4
- Left = 225
- TabIndex = 11
- Top = 525
- Width = 1440
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "999%"
- Height = 195
- Index = 1
- Left = 1725
- TabIndex = 12
- Top = 525
- Width = 465
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "User:"
- Height = 195
- Index = 5
- Left = 450
- TabIndex = 13
- Top = 750
- Width = 1215
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "999%"
- Height = 195
- Index = 2
- Left = 1725
- TabIndex = 14
- Top = 750
- Width = 465
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "GDI:"
- Height = 195
- Index = 7
- Left = 525
- TabIndex = 15
- Top = 975
- Width = 1140
- End
- Begin Label lblStatus
- AutoSize = -1 'True
- Caption = "999%"
- Height = 195
- Index = 3
- Left = 1725
- TabIndex = 16
- Top = 975
- Width = 465
- End
- End
- Begin CommandButton cmdOkay
- Cancel = -1 'True
- Caption = "E&xit"
- Default = -1 'True
- Height = 315
- Left = 5700
- TabIndex = 0
- Top = 150
- Width = 735
- End
- Begin Label lblOrgId
- AutoSize = -1 'True
- Caption = "OrgId"
- Height = 195
- Left = 1020
- TabIndex = 33
- Top = 630
- Width = 480
- End
- Begin Label lblUserId
- AutoSize = -1 'True
- Caption = "UserId"
- Height = 195
- Left = 1020
- TabIndex = 32
- Top = 420
- Width = 570
- End
- Begin Line Line1
- BorderWidth = 2
- X1 = 150
- X2 = 6375
- Y1 = 1275
- Y2 = 1275
- End
- Begin Label lblCopyright
- AutoSize = -1 'True
- Caption = "Copyright goes here"
- Height = 195
- Left = 1020
- TabIndex = 2
- Top = 840
- Width = 1710
- End
- Begin Label lblVersion
- AutoSize = -1 'True
- Caption = "Version goes here"
- Height = 195
- Left = 1020
- TabIndex = 1
- Top = 210
- Width = 1545
- End
- Option Explicit
- Const GFSR_GDIRESOURCES = &H1
- Const GFSR_SYSTEMRESOURCES = &H0
- Const GFSR_USERRESOURCES = &H2
- Const WF_ENHANCED = &H20
- Const WF_80x87 = &H400
- Const WF_CPU086 = &H40
- Const WF_CPU186 = &H80
- Const WF_CPU286 = &H2
- Const WF_CPU386 = &H4
- Const WF_CPU486 = &H8
- Sub cmdOkay_Click ()
- Unload Me
- End Sub
- Sub Form_Load ()
- Dim Rc%
- Rc% = AppIcon2Pic%(picProductIcon)
- FormCenter Me
- Call LoadTheList
- End Sub
- Sub LoadTheList ()
- Dim hInst%
- Dim FileName$
- Dim TimeStamp$
- Dim flagnum&
- Dim vernum&
- Dim verword%
- Dim Msg$
- Dim UserIs$
- Dim OrgIs$
- Dim hUser%, Result%
- lblVersion.Caption = "This product is licensed to:"
- hUser% = GetModuleHandle%("USER")
- UserIs$ = String$(32, 0)
- Result% = LoadString%(hUser%, 514, UserIs$, Len(UserIs$))
- UserIs$ = Left(UserIs$, InStr(UserIs$, Chr$(0)) - 1)
- If UserIs$ = "" Then
- lblUserId.Visible = False
- Else
- lblUserId.Caption = UserIs$
- End If
- OrgIs$ = String$(32, 0)
- Result% = LoadString%(hUser%, 515, OrgIs$, Len(OrgIs$))
- OrgIs$ = Left(OrgIs$, InStr(OrgIs$, Chr$(0)) - 1)
- If OrgIs$ = "" Then
- lblOrgId.Visible = False
- Else
- lblOrgId.Caption = OrgIs$
- End If
- lblCopyright.Caption = "Copyright
- 1994."
- hInst% = GetWindowWord%(Me.hWnd, GWW_HINSTANCE)
- FileName$ = ExeName$(hInst%)
- TimeStamp$ = FileDateTime(FileName$)
- lblModId.Caption = FileName$
- lblModSize.Caption = Format$(FileLen(FileName$), "###,###,##0") & " bytes."
- lblModDate.Caption = Format$(TimeStamp$, "dddddd") & " / " & Format$(TimeStamp$, "h:mm AM/PM") & "."
- lblStatus(0).Caption = FormatLong$(GetFreeSpace&(0)) & " bytes."
- lblStatus(1).Caption = Str$(GetFreeSystemResources%(GFSR_SYSTEMRESOURCES)) & "%"
- lblStatus(2).Caption = Str$(GetFreeSystemResources%(GFSR_USERRESOURCES)) & "%"
- lblStatus(3).Caption = Str$(GetFreeSystemResources%(GFSR_GDIRESOURCES)) & "%"
- lblStatus(7).Caption = WinDir$()
- lblStatus(8).Caption = SysDir$()
- lblStatus(9).Caption = CurDir$
- flagnum& = GetWinFlags&()
- vernum& = GetVersion&()
- verword% = CInt(vernum& / &H10000)
- lblStatus(6).Caption = Format$(verword% \ 256) & "." & Format$(verword% And &HFF)
- verword% = CInt(vernum& And &HFFFF&)
- Msg$ = Format$(verword% And &HFF) & "." & Format$(CInt(verword% / 256))
- If flagnum& And WF_ENHANCED Then
- Msg$ = Msg$ & " in 386-enhanced mode."
- End If
- lblStatus(4).Caption = Msg$
- Msg$ = ""
- If flagnum& And WF_CPU086 Then
- Msg$ = "8086"
- ElseIf flagnum& And WF_CPU186 Then
- Msg$ = "80186"
- ElseIf flagnum& And WF_CPU286 Then
- Msg$ = "80286"
- ElseIf flagnum& And WF_CPU386 Then
- Msg$ = "80386"
- ElseIf flagnum& And WF_CPU486 Then
- Msg$ = "80486"
- End If
- If flagnum& And WF_80x87 Then
- Msg$ = Msg$ & " with 80x87 coprocessor."
- End If
- lblStatus(5).Caption = Msg$
- 'If flagnum& And WF_PAGING Then Print "Memory paging active"
- 'If flagnum& And WF_PMODE Then Print "Protected mode operation"
- 'If flagnum& And WF_WLO Then Print "Windows emulation in non-Windows system"
- End Sub
-