Dataflow Runtime API  3.0.3.0
Macros | Functions
ZIPLibrary.h File Reference
#include <windows.h>

Macros

#define ZR_OK   0x00000000
 
#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
 

Functions

HANDLE CreateZip (const wchar_t *fn)
 Creates a zip file by specifying the zip file name. More...
 
DWORD ZipAdd (HANDLE hz, const wchar_t *dstzn, const wchar_t *fn)
 Adds a file identified by its file name to the zip file. More...
 
DWORD CloseZip (HANDLE hz)
 Closes the zip file and releases all allocated resources. More...
 

Macro Definition Documentation

◆ ZR_ARGS

#define ZR_ARGS   0x00010000

◆ ZR_BUGMASK

#define ZR_BUGMASK   0xFF000000

◆ ZR_CALLERMASK

#define ZR_CALLERMASK   0x00FF0000

◆ ZR_CORRUPT

#define ZR_CORRUPT   0x00000700

◆ ZR_ENDED

#define ZR_ENDED   0x00050000

◆ ZR_FAILED

#define ZR_FAILED   0x00040000

◆ ZR_FLATE

#define ZR_FLATE   0x05000000

◆ ZR_GENMASK

#define ZR_GENMASK   0x0000FF00

◆ ZR_MEMSIZE

#define ZR_MEMSIZE   0x00030000

◆ ZR_MISSIZE

#define ZR_MISSIZE   0x00060000

◆ ZR_MORE

#define ZR_MORE   0x00000600

◆ ZR_NOALLOC

#define ZR_NOALLOC   0x00000300

◆ ZR_NOCHANGE

#define ZR_NOCHANGE   0x04000000

◆ ZR_NODUPH

#define ZR_NODUPH   0x00000100

◆ ZR_NOFILE

#define ZR_NOFILE   0x00000200

◆ ZR_NOTFOUND

#define ZR_NOTFOUND   0x00000500

◆ ZR_NOTINITED

#define ZR_NOTINITED   0x01000000

◆ ZR_NOTMMAP

#define ZR_NOTMMAP   0x00020000

◆ ZR_OK

#define ZR_OK   0x00000000

◆ ZR_PARTIALUNZ

#define ZR_PARTIALUNZ   0x00070000

◆ ZR_READ

#define ZR_READ   0x00000800

◆ ZR_SEEK

#define ZR_SEEK   0x02000000

◆ ZR_WRITE

#define ZR_WRITE   0x00000400

◆ ZR_ZMODE

#define ZR_ZMODE   0x00080000

Function Documentation

◆ CloseZip()

DWORD CloseZip ( HANDLE  hz)

Closes the zip file and releases all allocated resources.

Parameters
hzHandle to the zip file
Returns
An error code indicating failure or success

◆ CreateZip()

HANDLE CreateZip ( const wchar_t *  fn)

Creates a zip file by specifying the zip file name.

Returns
A handle to the created zip file

◆ ZipAdd()

DWORD ZipAdd ( HANDLE  hz,
const wchar_t *  dstzn,
const wchar_t *  fn 
)

Adds a file identified by its file name to the zip file.

Parameters
hzHandle to the zip file
dstznDestination file name
fnSource file name
Returns
An error code indicating failure or success