Lock & Key(TM) Version 1.0
Copyright(C) 1998 J.R.Mainwaring
All Rights Reserved

This directory contains a sample application, in both C++ (Visual C++
Version 5) and Visual Basic (Version 5). Both versions have the same
functionality. Obviously, any language able to interface with DLLs can
be used with Lock & Key(TM).

The first time Lock & Key(TM) is used, it will create a new user data
file. Unless otherwise specified in the LNK32.INI file (see User Manual),
this file will be created in the Windows directory and will be called
LNK32.DAT, for example:

    C:\WINDOWS\LNK32.DAT

The file will contain the default SUPERVISOR user:

     User Id: SUPERVISOR
    Password: SUPERVISOR

The first time you login as this user you will be forced to change
the password. This will happen for all new users.

The sample application provides a User Maintenance option under the
Security menu which can be used to maintain the list of users and
their Keys. This option can only be accessed by users that have the
USER MAINTENANCE Key (such as the default SUPERVISOR user).

If at any time you are unsure what your current user data file
contains, delete it (or rename/move it) so that Lock & Key(TM) will
again create a new file with the default SUPERVISOR user.

The sample application shows how to change the availability of menu
options depending on the Keys allocated to the user currently logged
in. The following menu options are protected.

    Menu option         Key required to enable option
    ===========         =============================
    Create Database     CREATE DATABASE
    Open Database       OPEN DATABASE
    Close Database      CLOSE DATABASE
    Add Record          ADD RECORD
    Edit Record         EDIT RECORD
    Delete Record       DELETE RECORD

Other menu options are protected by a login, whereby any user with the
appropriate key can access the function associated with the menu option.

    Menu option         Key required to access option
    ===========         =============================
    Backup              BACKUP
    Restore             RESTORE

To use the sample application, create some users and allocate some or
all of the above Keys to each user. When each user logs in, the
appropriate menu options will be enabled. Note that the keys allocated
to each user can be changed at any time by any user with the USER
MAINTENANCE key.

The sample application also shows how to allow users to change their
password if required.
