NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
zip.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ZR_OK   0x00000000
 
#define ZR_RECENT   0x00000001
 
#define ZR_GENMASK   0x0000FF00
 
#define ZR_NODUPH   0x00000100
 
#define ZR_NOFILE   0x00000200
 
#define ZR_NOALLOC   0x00000300
 
#define ZR_WRITE   0x00000400
 
#define ZR_NOTFOUND   0x00000500
 
#define ZR_MORE   0x00000600
 
#define ZR_CORRUPT   0x00000700
 
#define ZR_READ   0x00000800
 
#define ZR_CALLERMASK   0x00FF0000
 
#define ZR_ARGS   0x00010000
 
#define ZR_NOTMMAP   0x00020000
 
#define ZR_MEMSIZE   0x00030000
 
#define ZR_FAILED   0x00040000
 
#define ZR_ENDED   0x00050000
 
#define ZR_MISSIZE   0x00060000
 
#define ZR_PARTIALUNZ   0x00070000
 
#define ZR_ZMODE   0x00080000
 
#define ZR_BUGMASK   0xFF000000
 
#define ZR_NOTINITED   0x01000000
 
#define ZR_SEEK   0x02000000
 
#define ZR_NOCHANGE   0x04000000
 
#define ZR_FLATE   0x05000000
 
#define CloseZip   CloseZipZ
 
#define FormatZipMessage   FormatZipMessageZ
 

Typedefs

typedef DWORD ZRESULT
 

Functions

 DECLARE_HANDLE (HZIP)
 
HZIP CreateZip (const TCHAR *fn, const char *password)
 
HZIP CreateZip (void *buf, unsigned int len, const char *password)
 
HZIP CreateZipHandle (HANDLE h, const char *password)
 
ZRESULT ZipAdd (HZIP hz, const TCHAR *dstzn, const TCHAR *fn)
 
ZRESULT ZipAdd (HZIP hz, const TCHAR *dstzn, void *src, unsigned int len)
 
ZRESULT ZipAddHandle (HZIP hz, const TCHAR *dstzn, HANDLE h)
 
ZRESULT ZipAddHandle (HZIP hz, const TCHAR *dstzn, HANDLE h, unsigned int len)
 
ZRESULT ZipAddFolder (HZIP hz, const TCHAR *dstzn)
 
ZRESULT ZipGetMemory (HZIP hz, void **buf, unsigned long *len)
 
ZRESULT CloseZip (HZIP hz)
 
unsigned int FormatZipMessage (ZRESULT code, TCHAR *buf, unsigned int len)
 
ZRESULT CloseZipZ (HZIP hz)
 
unsigned int FormatZipMessageZ (ZRESULT code, char *buf, unsigned int len)
 
bool IsZipHandleZ (HZIP hz)
 

Macro Definition Documentation

◆ CloseZip

#define CloseZip   CloseZipZ

Definition at line 197 of file zip.h.

◆ FormatZipMessage

#define FormatZipMessage   FormatZipMessageZ

Definition at line 198 of file zip.h.

◆ ZR_ARGS

#define ZR_ARGS   0x00010000

Definition at line 106 of file zip.h.

◆ ZR_BUGMASK

#define ZR_BUGMASK   0xFF000000

Definition at line 115 of file zip.h.

◆ ZR_CALLERMASK

#define ZR_CALLERMASK   0x00FF0000

Definition at line 105 of file zip.h.

◆ ZR_CORRUPT

#define ZR_CORRUPT   0x00000700

Definition at line 102 of file zip.h.

◆ ZR_ENDED

#define ZR_ENDED   0x00050000

Definition at line 110 of file zip.h.

◆ ZR_FAILED

#define ZR_FAILED   0x00040000

Definition at line 109 of file zip.h.

◆ ZR_FLATE

#define ZR_FLATE   0x05000000

Definition at line 119 of file zip.h.

◆ ZR_GENMASK

#define ZR_GENMASK   0x0000FF00

Definition at line 95 of file zip.h.

◆ ZR_MEMSIZE

#define ZR_MEMSIZE   0x00030000

Definition at line 108 of file zip.h.

◆ ZR_MISSIZE

#define ZR_MISSIZE   0x00060000

Definition at line 111 of file zip.h.

◆ ZR_MORE

#define ZR_MORE   0x00000600

Definition at line 101 of file zip.h.

◆ ZR_NOALLOC

#define ZR_NOALLOC   0x00000300

Definition at line 98 of file zip.h.

◆ ZR_NOCHANGE

#define ZR_NOCHANGE   0x04000000

Definition at line 118 of file zip.h.

◆ ZR_NODUPH

#define ZR_NODUPH   0x00000100

Definition at line 96 of file zip.h.

◆ ZR_NOFILE

#define ZR_NOFILE   0x00000200

Definition at line 97 of file zip.h.

◆ ZR_NOTFOUND

#define ZR_NOTFOUND   0x00000500

Definition at line 100 of file zip.h.

◆ ZR_NOTINITED

#define ZR_NOTINITED   0x01000000

Definition at line 116 of file zip.h.

◆ ZR_NOTMMAP

#define ZR_NOTMMAP   0x00020000

Definition at line 107 of file zip.h.

◆ ZR_OK

#define ZR_OK   0x00000000

Definition at line 92 of file zip.h.

◆ ZR_PARTIALUNZ

#define ZR_PARTIALUNZ   0x00070000

Definition at line 112 of file zip.h.

◆ ZR_READ

#define ZR_READ   0x00000800

Definition at line 103 of file zip.h.

◆ ZR_RECENT

#define ZR_RECENT   0x00000001

Definition at line 93 of file zip.h.

◆ ZR_SEEK

#define ZR_SEEK   0x02000000

Definition at line 117 of file zip.h.

◆ ZR_WRITE

#define ZR_WRITE   0x00000400

Definition at line 99 of file zip.h.

◆ ZR_ZMODE

#define ZR_ZMODE   0x00080000

Definition at line 113 of file zip.h.

Typedef Documentation

◆ ZRESULT

typedef DWORD ZRESULT

Definition at line 17 of file zip.h.

Function Documentation

◆ CloseZip()

ZRESULT CloseZip ( HZIP  hz)

◆ CloseZipZ()

ZRESULT CloseZipZ ( HZIP  hz)

Definition at line 3323 of file zip.cpp.

References TZip::Close(), TZipHandleData::flag, lasterrorZ, TZipHandleData::zip, ZR_ARGS, and ZR_ZMODE.

Here is the call graph for this function:

◆ CreateZip() [1/2]

HZIP CreateZip ( const TCHAR *  fn,
const char *  password 
)

Definition at line 3253 of file zip.cpp.

References CreateZipInternal(), and ZIP_FILENAME.

Referenced by Zipfile::open().

Here is the call graph for this function:

◆ CreateZip() [2/2]

HZIP CreateZip ( void *  buf,
unsigned int  len,
const char *  password 
)

Definition at line 3257 of file zip.cpp.

References CreateZipInternal(), and ZIP_MEMORY.

Here is the call graph for this function:

◆ CreateZipHandle()

HZIP CreateZipHandle ( HANDLE  h,
const char *  password 
)

Definition at line 3249 of file zip.cpp.

References CreateZipInternal(), and ZIP_HANDLE.

Here is the call graph for this function:

◆ DECLARE_HANDLE()

DECLARE_HANDLE ( HZIP  )

◆ FormatZipMessage()

unsigned int FormatZipMessage ( ZRESULT  code,
TCHAR *  buf,
unsigned int  len 
)

◆ FormatZipMessageZ()

unsigned int FormatZipMessageZ ( ZRESULT  code,
char *  buf,
unsigned int  len 
)

◆ IsZipHandleZ()

bool IsZipHandleZ ( HZIP  hz)

Definition at line 3343 of file zip.cpp.

References TZipHandleData::flag.

◆ ZipAdd() [1/2]

ZRESULT ZipAdd ( HZIP  hz,
const TCHAR *  dstzn,
const TCHAR *  fn 
)

Definition at line 3280 of file zip.cpp.

References ZIP_FILENAME, and ZipAddInternal().

Referenced by Zipfile::addFile().

Here is the call graph for this function:

◆ ZipAdd() [2/2]

ZRESULT ZipAdd ( HZIP  hz,
const TCHAR *  dstzn,
void *  src,
unsigned int  len 
)

Definition at line 3284 of file zip.cpp.

References ZIP_MEMORY, and ZipAddInternal().

Here is the call graph for this function:

◆ ZipAddFolder()

ZRESULT ZipAddFolder ( HZIP  hz,
const TCHAR *  dstzn 
)

Definition at line 3296 of file zip.cpp.

References ZIP_FOLDER, and ZipAddInternal().

Here is the call graph for this function:

◆ ZipAddHandle() [1/2]

ZRESULT ZipAddHandle ( HZIP  hz,
const TCHAR *  dstzn,
HANDLE  h 
)

Definition at line 3288 of file zip.cpp.

References ZIP_HANDLE, and ZipAddInternal().

Here is the call graph for this function:

◆ ZipAddHandle() [2/2]

ZRESULT ZipAddHandle ( HZIP  hz,
const TCHAR *  dstzn,
HANDLE  h,
unsigned int  len 
)

Definition at line 3292 of file zip.cpp.

References ZIP_HANDLE, and ZipAddInternal().

Here is the call graph for this function:

◆ ZipGetMemory()

ZRESULT ZipGetMemory ( HZIP  hz,
void **  buf,
unsigned long *  len 
)

Definition at line 3303 of file zip.cpp.

References TZipHandleData::flag, TZip::GetMemory(), lasterrorZ, TZipHandleData::zip, ZR_ARGS, and ZR_ZMODE.

Here is the call graph for this function: