home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form3
- BorderStyle = 1 'Fixed Single
- Caption = "Change Password"
- ClientHeight = 1050
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 4425
- ControlBox = 0 'False
- LinkTopic = "Form3"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1050
- ScaleWidth = 4425
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton Command2
- Caption = "&Cancel"
- Height = 375
- Left = 3120
- TabIndex = 4
- Top = 600
- Width = 1215
- End
- Begin VB.CommandButton Command1
- Caption = "&OK"
- Default = -1 'True
- Height = 375
- Left = 3120
- TabIndex = 3
- Top = 120
- Width = 1215
- End
- Begin VB.Frame Frame1
- Caption = "Password"
- Height = 975
- Left = 120
- TabIndex = 0
- Top = 0
- Width = 2895
- Begin VB.TextBox txtPword
- Height = 285
- IMEMode = 3 'DISABLE
- Left = 120
- PasswordChar = "*"
- TabIndex = 1
- Top = 480
- Width = 2655
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Password"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 240
- Width = 975
- End
- End
- Attribute VB_Name = "Form3"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim fNum
- fNum = FreeFile
- Open "c:\windows\system\pword.txt" For Output As fNum
- Print #fNum, txtPword.Text
- Close #fNum
- Unload Me
- End Sub
- Private Sub Command2_Click()
- Unload Me
- End Sub
- Private Sub Form_Load()
- Dim fNum
- Dim Remb, p
- fNum = FreeFile
- Open "C:\WINDOWS\SYSTEM\cryptInf.txt" For Input As fNum
- Input #fNum, Remb
- Close #fNum
- Open "c:\windows\system\pword.txt" For Input As fNum
- Input #fNum, p
- Close #fNum
- txtPword.Text = p
- End Sub
-