Go to the documentation of this file.
22 HZIP
CreateZip(
const TCHAR *fn,
const char *password);
23 HZIP
CreateZip(
void *buf,
unsigned int len,
const char *password);
57 ZRESULT ZipAdd(HZIP hz,
const TCHAR *dstzn,
void *src,
unsigned int len);
92 #define ZR_OK 0x00000000 // nb. the pseudo-code zr-recent is never returned,
93 #define ZR_RECENT 0x00000001 // but can be passed to FormatZipMessage.
95 #define ZR_GENMASK 0x0000FF00
96 #define ZR_NODUPH 0x00000100 // couldn't duplicate the handle
97 #define ZR_NOFILE 0x00000200 // couldn't create/open the file
98 #define ZR_NOALLOC 0x00000300 // failed to allocate some resource
99 #define ZR_WRITE 0x00000400 // a general error writing to the file
100 #define ZR_NOTFOUND 0x00000500 // couldn't find that file in the zip
101 #define ZR_MORE 0x00000600 // there's still more data to be unzipped
102 #define ZR_CORRUPT 0x00000700 // the zipfile is corrupt or not a zipfile
103 #define ZR_READ 0x00000800 // a general error reading the file
105 #define ZR_CALLERMASK 0x00FF0000
106 #define ZR_ARGS 0x00010000 // general mistake with the arguments
107 #define ZR_NOTMMAP 0x00020000 // tried to ZipGetMemory, but that only works on mmap zipfiles, which yours wasn't
108 #define ZR_MEMSIZE 0x00030000 // the memory size is too small
109 #define ZR_FAILED 0x00040000 // the thing was already failed when you called this function
110 #define ZR_ENDED 0x00050000 // the zip creation has already been closed
111 #define ZR_MISSIZE 0x00060000 // the indicated input file size turned out mistaken
112 #define ZR_PARTIALUNZ 0x00070000 // the file had already been partially unzipped
113 #define ZR_ZMODE 0x00080000 // tried to mix creating/opening a zip
115 #define ZR_BUGMASK 0xFF000000
116 #define ZR_NOTINITED 0x01000000 // initialisation didn't work
117 #define ZR_SEEK 0x02000000 // trying to seek in an unseekable file
118 #define ZR_NOCHANGE 0x04000000 // changed its mind on storage, but not allowed
119 #define ZR_FLATE 0x05000000 // an internal error in the de/inflation code
195 #define CloseZip(hz) (IsZipHandleZ(hz)?CloseZipZ(hz):CloseZipU(hz))
197 #define CloseZip CloseZipZ
198 #define FormatZipMessage FormatZipMessageZ