Unit UNZDLL

UNZDLL.PAS - Delphi v2 translation of file "wizunzip.h" by Eric W. Engler } { Import Unit for UNZDLL - put this into the "uses" clause of any other unit that wants to access the UNZDLL. } { I changed this to use dynamic loading of the DLL in order to allow the user program to control when to load and unload the DLLs. Thanks to these people for sending me dynamic loading code: Ewart Nijburg, Nijsoft@Compuserve.com P.A. Gillioz, pag.aria@rhone.ch

Classes

Functions

Types

PUnZipParms
UnZipParms

Constants

Variables

GetUnzDllVersion
UnzDllExec
UnzDllHandle


Functions


Types


PUnZipParms = ^UnZipParms

UnZipParms = record
Handle : THandle;
Caller : Pointer;
Version : LongInt;
ZCallbackFunc : ZFunctionPtrType;
fTraceEnabled : LongBool;
fPromptToOverwrite : LongBool;
PZipPassword : PChar;
fTest : LongBool;
fComments : LongBool;
fConvert : LongBool;
fQuiet : LongBool;
fVerboseEnabled : LongBool;
fUpdate : LongBool;
fFreshen : LongBool;
fDirectories : LongBool;
fOverwrite : LongBool;
argc : LongInt;
PZipFN : PChar;
seven : LongInt;
PFileNames : array[0..FilesMax] of PChar;
end;
This record is very critical. Any changes in the order of items, the size of items, or modifying the number of items, may have disasterous results. You have been warned!

Constants


Variables

GetUnzDllVersion : function : DWORD

UnzDllExec : function(UnZipRec: PUnZipParms): DWORD

Main call to execute a ZIP add or Delete. This call returns the number of files that were sucessfully operated on.

UnzDllHandle : THandle