                             LZHUF_1.DLL - v1.0 
                             ==================
                                 (02-02-96)

                   LZHUF compression by Haruyasu Yoshizaki
                        Adapted by Jean-Paul ROUBELAT
                     DLL'ed by Purple Computer Solutions
                  
              Unrestricted use -=- Source available on request

The LZHUF_1 DLL is simply a Windows DLL implementation of the LZHUF_1.EXE
program, as modified by Jean Paul Roubelat for use within his F6FBB server
system. 

The format of a compressed file is :-

byte      description
======================================
0,1     - CRC16
2,3,4,5 - Length of uncompressed file
6 ->    - Rest of file

Here are the function definitions :-

int FAR PASCAL _export lz_decode(int mode, LPSTR infilename, LPSTR outfilename)
int FAR PASCAL _export lz_encode(int mode, LPSTR infilename, LPSTR outfilename)

Visual Basic declarations :-

Declare Function lz_decode Lib "LZHUF_1.DLL" (mode As Integer, infilename As String, outfilename As String) As Integer
Declare Function lz_encode Lib "LZHUF_1.DLL" (mode As Integer, infilename As String, outfilename As String) As Integer

lz_encode is the encoder (i.e. it compresses)
lz_decode is the decoder (i.e. it re-expands)

mode - Version one compression (utilises CRC16)
infilename - full pathname of input file
outfilename - full name of output


This was a very simple conversion, additions are possible, just ask!

Purple Computer Solutions
31 Hartshill
Bedford
MK41 9AL
UK

Tel : +44 (0)1234 328816
Fax : +44 (0)1234 328817

Email: CharlieM@b-m-s.demon.co.uk
       CharlieM@thresh.demon.co.uk

AX25 : G7MYO @ GB7BED.#21.GBR.EU
