VERSION 2.00
Begin Form frmMain 
   Caption         =   "Test Reset Authorization Application"
   ClientHeight    =   1575
   ClientLeft      =   1425
   ClientTop       =   1485
   ClientWidth     =   6840
   Height          =   1980
   Left            =   1365
   LinkTopic       =   "Form1"
   ScaleHeight     =   1575
   ScaleWidth      =   6840
   Top             =   1140
   Width           =   6960
   Begin TextBox txtAuthDir 
      Height          =   285
      Left            =   2760
      TabIndex        =   3
      Text            =   "A:\"
      Top             =   360
      Width           =   3855
   End
   Begin CommandButton cmdExit 
      Caption         =   "E&xit"
      Height          =   395
      Left            =   3720
      TabIndex        =   1
      Top             =   960
      Width           =   1215
   End
   Begin CommandButton cmdOk 
      Caption         =   "&Do It!"
      Default         =   -1  'True
      Height          =   395
      Left            =   1800
      TabIndex        =   0
      Top             =   960
      Width           =   1215
   End
   Begin Label lblAuthDir 
      Caption         =   "Authorization Directory:   "
      Height          =   285
      Left            =   240
      TabIndex        =   2
      Top             =   360
      Width           =   2295
   End
End
Option Explicit
    
    Dim Text

Sub cmdExit_Click ()
    
    'Just end this sample program
    End

End Sub

Sub cmdOk_Click ()

    Dim ret As Integer

    'Execute the reset code function
    Text = frmMain.Caption
    ret = ResetAuth(frmMain.txtAuthDir.Text, Text)

    'Display the results of the reset.
    If ret = 0 Then
        MsgBox "Reset Successful!", 64, frmMain.Caption
    Else
        MsgBox "Reset Failed!", 16, frmMain.Caption
    End If

    End

End Sub

