229{
230
231
233 {
236 }
237
239 for (
INT iItem = 0; iItem <
m_items.GetSize(); ++iItem)
240 {
242 }
243
244 if (files.GetSize() <= 0)
245 {
246 DPRINT1(
"files.GetSize() <= 0\n");
247
252
254 }
255
258
261 if (zf == 0)
262 {
264
266
271
273 }
274
275
277 int zip64 = 1;
279
283 {
285
288 {
289 DPRINT1(
"DoReadAllOfFile failed\n");
291 strTarget = strFile;
292 break;
293 }
294
295 unsigned long crc = 0;
297 {
298
299 }
300
303 strNameInZip,
304 &zi,
306 0,
308 0,
312 0,
317 crc,
318 zip64);
320 {
321 DPRINT1(
"zipOpenNewFileInZip3_64\n");
322 break;
323 }
324
327 {
328 DPRINT1(
"zipWriteInFileInZip\n");
329 break;
330 }
331
334 {
335 DPRINT1(
"zipCloseFileInZip\n");
336 break;
337 }
338 }
339
341
343 {
345
347
351 else
353
355 }
356 else
357 {
361 }
362
364}
static CStringW DoGetBaseName(LPCWSTR filename)
static void DoAddFilesFromItem(CSimpleArray< CStringW > &files, LPCWSTR item)
static BOOL DoReadAllOfFile(LPCWSTR filename, CSimpleArray< BYTE > &contents, zip_fileinfo *pzi)
static CStringW DoGetZipName(LPCWSTR filename)
static CStringA DoGetNameInZip(const CStringW &basename, const CStringW &filename)
EXTERN_C void WINAPI SHChangeNotify(LONG wEventId, UINT uFlags, LPCVOID dwItem1, LPCVOID dwItem2)
void __cdecl Format(UINT nFormatID,...)
#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)
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 zipOpenNewFileInZip3_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, int zip64)
int ZEXPORT zipCloseFileInZip(zipFile file)
#define APPEND_STATUS_CREATE