Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - unzipfile() unzips a file from the zip file http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 UnZipFile()            UnZips a file from the ZIP file
--------------------------------------------------------------------------------

   Syntax:              UnZipFile( <cZipFileName>,;
                                   <cFileName>,;
                                   <nFileOffset>,;
                                   <hWnd> ) --> <nRetCode>

   Parameters:

   <cZipFileName>       The name of the ZIP file from where to extract
                        <cFileName>.

   <cFileName>          The name of the file to extract from the ZIP
                        file.

   <nFileOffset>        The offset inside the ZIP file where this
                        file to extract is located. It is the seventh
                        item of the array returned by GetFirstInZip() and
                        GetNextInZip() functions.

   <hWnd>               The handle of the window or Dialog where
                        Info-Unz.dll will report the unzip progress. This
                        window will automatically evaluate its DATA bUnZip
                        codeblock:

                        <oWnd>:bUnZip = { | nPercent | ... }

                        From that codeblock you may update a Meter control,
                        or any other used control.

   Returns:

   <nRetCode>           The returned code from this operation:

                        #define ZIP_OK              0
                        #define ZIP_FILEERROR      -1
                        #define ZIP_INTERNALERROR  -2
                        #define ZIP_NOMOREITEMS     1

   Sample:              SAMPLES\\TestZip.prg

   Source code:         SOURCE\\FUNCTION\\UnZip.c


See Also: IsZip() GetNextInZip() CloseZipFile() GetFirstInZip()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson