222{
223
224
226 {
229 }
230
232 for (
INT iItem = 0; iItem <
m_items.GetSize(); ++iItem)
233 {
235 }
236
237 if (files.GetSize() <= 0)
238 {
239 DPRINT1(
"files.GetSize() <= 0\n");
240
245
247 }
248
251
254 if (zf == 0)
255 {
257
259
264
266 }
267
268
270 int zip64 = 1;
272
277 {
279
282 {
283 DPRINT1(
"DoReadAllOfFile failed\n");
285 strTarget = strFile;
286 break;
287 }
288
289 unsigned long crc = 0;
291 {
292
293 }
294
297 strNameInZip,
298 &zi,
300 0,
302 0,
306 0,
311 crc,
314 zip64);
316 {
317 DPRINT1(
"zipOpenNewFileInZip3_64\n");
318 break;
319 }
320
323 {
324 DPRINT1(
"zipWriteInFileInZip\n");
325 break;
326 }
327
330 {
331 DPRINT1(
"zipCloseFileInZip\n");
332 break;
333 }
334 }
335
337
339 {
341
343
347 else
349
351 }
352 else
353 {
357 }
358
360}
static CStringW DoGetZipName(PCWSTR filename)
static CStringA DoGetNameInZip(const CStringW &basename, const CStringW &filename, UINT nCodePage)
static void DoAddFilesFromItem(CSimpleArray< CStringW > &files, PCWSTR item)
static CStringW DoGetBaseName(PCWSTR filename)
static BOOL DoReadAllOfFile(PCWSTR filename, CSimpleArray< BYTE > &contents, zip_fileinfo *pzi)
EXTERN_C void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2)
void __cdecl Format(UINT nFormatID,...)
#define MINIZIP_COMPATIBLE_VERSION
UINT GetZipCodePage(BOOL bUnZip)
#define MINIZIP_UTF8_FLAG
#define IDS_CANTCREATEZIP
#define Z_DEFAULT_STRATEGY
#define Z_DEFAULT_COMPRESSION
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
void fill_win32_filefunc64W(zlib_filefunc64_def *pzlib_filefunc_def)
static const char * contents
CSimpleArray< CStringW > m_items
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MAKEINTRESOURCEW(i)
int ZEXPORT zipClose(zipFile file, const char *global_comment)
int ZEXPORT zipOpenNewFileInZip4_64(zipFile file, const char *filename, const zip_fileinfo *zipfi, const void *extrafield_local, uInt size_extrafield_local, const void *extrafield_global, uInt size_extrafield_global, const char *comment, int method, int level, int raw, int windowBits, int memLevel, int strategy, const char *password, uLong crcForCrypting, uLong versionMadeBy, uLong flagBase, int zip64)
zipFile ZEXPORT zipOpen2_64(const void *pathname, int append, zipcharpc *globalcomment, zlib_filefunc64_def *pzlib_filefunc_def)
int ZEXPORT zipWriteInFileInZip(zipFile file, const void *buf, unsigned int len)
int ZEXPORT zipCloseFileInZip(zipFile file)
#define APPEND_STATUS_CREATE