Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathapi.h
More file actions
Latest commit
184 lines (162 loc) · 6.91 KB
/
Copy pathapi.h
File metadata and controls
184 lines (162 loc) · 6.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/*
api.h - Zip 3
Copyright (c) 1990-2007 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2007-Mar-4 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
*/
/* Only the Windows DLL is currently supported */
#ifndef_ZIPAPI_H
#define_ZIPAPI_H
#include"zip.h"
#ifdefWIN32
# ifndefPATH_MAX
# definePATH_MAX 260
# endif
#else
# ifndefPATH_MAX
# definePATH_MAX 128
# endif
#endif
#if defined(WINDLL) || defined(API)
#include<windows.h>
/* Porting definations between Win 3.1x and Win32 */
#ifdefWIN32
# definefar
# define_far
# define__far
# definenear
# define_near
# define__near
#endif
/*---------------------------------------------------------------------------
Prototypes for public Zip API (DLL) functions.
---------------------------------------------------------------------------*/
#defineZPVER_LEN sizeof(ZpVer)
/* These defines are set to zero for now, until OS/2 comes out
with a dll.
*/
#defineD2_MAJORVER 0
#defineD2_MINORVER 0
#defineD2_PATCHLEVEL 0
/* intended to be a private struct: */
typedefstruct_zip_ver {
uchmajor; /* e.g., integer 5 */
uchminor; /* e.g., 2 */
uchpatchlevel; /* e.g., 0 */
uchnot_used;
} _zip_version_type;
typedefstruct_ZpVer {
ulgstructlen; /* length of the struct being passed */
ulgflag; /* bit 0: is_beta bit 1: uses_zlib */
charbetalevel[10]; /* e.g., "g BETA" or "" */
chardate[20]; /* e.g., "4 Sep 95" (beta) or "4 September 1995" */
charzlib_version[10]; /* e.g., "0.95" or NULL */
BOOLfEncryption; /* TRUE if encryption enabled, FALSE otherwise */
_zip_version_typezip;
_zip_version_typeos2dll;
_zip_version_typewindll;
} ZpVer;
# ifndefEXPENTRY
# defineEXPENTRY WINAPI
# endif
#ifndefDEFINED_ONCE
#defineDEFINED_ONCE
typedefint (WINAPIDLLPRNT) (LPSTR, unsigned long);
typedefint (WINAPIDLLPASSWORD) (LPSTR, int, LPCSTR, LPCSTR);
#endif
#ifdefZIP64_SUPPORT
typedefint (WINAPIDLLSERVICE) (LPCSTR, unsigned__int64);
typedefint (WINAPIDLLSERVICE_NO_INT64) (LPCSTR, unsigned long, unsigned long);
#else
typedefint (WINAPIDLLSERVICE) (LPCSTR, unsigned long);
#endif
typedefint (WINAPIDLLSPLIT) (LPSTR);
typedefint (WINAPIDLLCOMMENT)(LPSTR);
/* Structures */
typedefstruct { /* zip options */
LPSTRDate; /* Date to include after */
LPSTRszRootDir; /* Directory to use as base for zipping */
LPSTRszTempDir; /* Temporary directory used during zipping */
BOOLfTemp; /* Use temporary directory '-b' during zipping */
BOOLfSuffix; /* include suffixes (not implemented) */
BOOLfEncrypt; /* encrypt files */
BOOLfSystem; /* include system and hidden files */
BOOLfVolume; /* Include volume label */
BOOLfExtra; /* Exclude extra attributes */
BOOLfNoDirEntries; /* Do not add directory entries */
BOOLfExcludeDate; /* Exclude files newer than specified date */
BOOLfIncludeDate; /* Include only files newer than specified date */
BOOLfVerbose; /* Mention oddities in zip file structure */
BOOLfQuiet; /* Quiet operation */
BOOLfCRLF_LF; /* Translate CR/LF to LF */
BOOLfLF_CRLF; /* Translate LF to CR/LF */
BOOLfJunkDir; /* Junk directory names */
BOOLfGrow; /* Allow appending to a zip file */
BOOLfForce; /* Make entries using DOS names (k for Katz) */
BOOLfMove; /* Delete files added or updated in zip file */
BOOLfDeleteEntries; /* Delete files from zip file */
BOOLfUpdate; /* Update zip file--overwrite only if newer */
BOOLfFreshen; /* Freshen zip file--overwrite only */
BOOLfJunkSFX; /* Junk SFX prefix */
BOOLfLatestTime; /* Set zip file time to time of latest file in it */
BOOLfComment; /* Put comment in zip file */
BOOLfOffsets; /* Update archive offsets for SFX files */
BOOLfPrivilege; /* Use privileges (WIN32 only) */
BOOLfEncryption; /* TRUE if encryption supported, else FALSE.
this is a read only flag */
LPSTRszSplitSize; /* This string contains the size that you want to
split the archive into. i.e. 100 for 100 bytes,
2K for 2 k bytes, where K is 1024, m for meg
and g for gig. If this string is not NULL it
will automatically be assumed that you wish to
split an archive. */
LPSTRszIncludeList; /* Pointer to include file list string (for VB) */
longIncludeListCount; /* Count of file names in the include list array */
char**IncludeList; /* Pointer to include file list array. Note that the last
entry in the array must be NULL */
LPSTRszExcludeList; /* Pointer to exclude file list (for VB) */
longExcludeListCount; /* Count of file names in the include list array */
char**ExcludeList; /* Pointer to exclude file list array. Note that the last
entry in the array must be NULL */
intfRecurse; /* Recurse into subdirectories. 1 => -r, 2 => -R */
intfRepair; /* Repair archive. 1 => -F, 2 => -FF */
charfLevel; /* Compression level (0 - 9) */
} ZPOPT, _far*LPZPOPT;
typedefstruct {
intargc; /* Count of files to zip */
LPSTRlpszZipFN; /* name of archive to create/update */
char**FNV; /* array of file names to zip up */
LPSTRlpszAltFNL; /* pointer to a string containing a list of file
names to zip up, separated by whitespace. Intended
for use only by VB users, all others should set this
to NULL. */
} ZCL, _far*LPZCL;
typedefstruct {
DLLPRNT*print;
DLLCOMMENT*comment;
DLLPASSWORD*password;
DLLSPLIT*split; /* This MUST be set to NULL unless you want to be queried
for a destination for each split archive. */
#ifdefZIP64_SUPPORT
DLLSERVICE*ServiceApplication64;
DLLSERVICE_NO_INT64*ServiceApplication64_No_Int64;
#else
DLLSERVICE*ServiceApplication;
#endif
} ZIPUSERFUNCTIONS, far*LPZIPUSERFUNCTIONS;
externLPZIPUSERFUNCTIONSlpZipUserFunctions;
voidEXPENTRYZpVersion(ZpVerfar*);
intEXPENTRYZpInit(LPZIPUSERFUNCTIONSlpZipUserFunc);
intEXPENTRYZpArchive(ZCLC, LPZPOPTOpts);
#if defined(ZIPLIB) || defined(COM_OBJECT)
# defineydays zp_ydays
#endif
/* Functions not yet supported */
#if0
intEXPENTRYZpMain (intargc, char**argv);
intEXPENTRYZpAltMain (intargc, char**argv, ZpInit*init);
#endif
#endif/* WINDLL? || API? */
#endif/* _ZIPAPI_H */