VERSION 4.00
Begin VB.Form frmMain 
   Appearance      =   0  'Flat
   BackColor       =   &H80000005&
   Caption         =   "Test Reset Authorization Application"
   ClientHeight    =   1575
   ClientLeft      =   1425
   ClientTop       =   1485
   ClientWidth     =   6840
   BeginProperty Font 
      name            =   "MS Sans Serif"
      charset         =   1
      weight          =   700
      size            =   8.25
      underline       =   0   'False
      italic          =   0   'False
      strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H80000008&
   Height          =   1980
   Left            =   1365
   LinkTopic       =   "Form1"
   ScaleHeight     =   1575
   ScaleWidth      =   6840
   Top             =   1140
   Width           =   6960
   Begin VB.TextBox txtAuthDir 
      Appearance      =   0  'Flat
      Height          =   285
      Left            =   2760
      TabIndex        =   3
      Text            =   "A:\"
      Top             =   360
      Width           =   3855
   End
   Begin VB.CommandButton cmdExit 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "E&xit"
      Height          =   395
      Left            =   3720
      TabIndex        =   1
      Top             =   960
      Width           =   1215
   End
   Begin VB.CommandButton cmdOk 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "&Do It!"
      Default         =   -1  'True
      Height          =   395
      Left            =   1800
      TabIndex        =   0
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label lblAuthDir 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      Caption         =   "Authorization Directory:   "
      ForeColor       =   &H80000008&
      Height          =   285
      Left            =   240
      TabIndex        =   2
      Top             =   360
      Width           =   2295
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
    
    Dim Text

Private Sub cmdExit_Click()
    
    'Just end this sample program
    End

End Sub

Private 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

