Closes a zip file.

Syntax

SRP_Zip_Close(ZipHandle)

Parameters

ZipHandle Handle to an opened zip file.

Remarks

Call this routine to close a zip file. Make sure you call this anytime you successfully call SRP_Zip_Open or SRP_Zip_Create. Otherwise, resource leaks may occur.

You must call this routine before opening or creating other zip files. Failure do so may prevent you from opening or creating any other zip files.

Example

// Always close a file when done
hZip = SRP_Zip_Open("C:\MyFile.zip")
If hZip EQ 0 then
   Call Msg(@Window, SRP_Zip_GetLastError())
end else
   SRP_Zip_Close(hZip)
end
  • No labels