OLD | NEW |
1 /* iowin32.c -- IO base function header for compress/uncompress .zip | 1 /* iowin32.c -- IO base function header for compress/uncompress .zip |
2 Version 1.1, February 14h, 2010 | 2 Version 1.1, February 14h, 2010 |
3 part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.htm
l ) | 3 part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.htm
l ) |
4 | 4 |
5 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.
com/zLibDll/minizip.html ) | 5 Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.
com/zLibDll/minizip.html ) |
6 | 6 |
7 Modifications for Zip64 support | 7 Modifications for Zip64 support |
8 Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) | 8 Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com ) |
9 | 9 |
10 For more info read MiniZip_info.txt | 10 For more info read MiniZip_info.txt |
(...skipping 14 matching lines...) Expand all Loading... |
25 #define INVALID_SET_FILE_POINTER ((DWORD)-1) | 25 #define INVALID_SET_FILE_POINTER ((DWORD)-1) |
26 #endif | 26 #endif |
27 | 27 |
28 | 28 |
29 #ifdef _WIN32_WINNT | 29 #ifdef _WIN32_WINNT |
30 #undef _WIN32_WINNT | 30 #undef _WIN32_WINNT |
31 #define _WIN32_WINNT 0x601 | 31 #define _WIN32_WINNT 0x601 |
32 #endif | 32 #endif |
33 | 33 |
34 #if _WIN32_WINNT >= _WIN32_WINNT_WIN8 | 34 #if _WIN32_WINNT >= _WIN32_WINNT_WIN8 |
| 35 // see Include/shared/winapifamily.h in the Windows Kit |
35 #if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API))) | 36 #if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API))) |
36 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) | 37 #if WINAPI_FAMILY_ONE_PARTITION(WINAPI_FAMILY, WINAPI_PARTITION_APP) |
37 #define IOWIN32_USING_WINRT_API 1 | 38 #define IOWIN32_USING_WINRT_API 1 |
38 #endif | 39 #endif |
39 #endif | 40 #endif |
40 #endif | 41 #endif |
41 | 42 |
42 voidpf ZCALLBACK win32_open_file_func OF((voidpf opaque, const char* filename,
int mode)); | 43 voidpf ZCALLBACK win32_open_file_func OF((voidpf opaque, const char* filename,
int mode)); |
43 uLong ZCALLBACK win32_read_file_func OF((voidpf opaque, voidpf stream, void*
buf, uLong size)); | 44 uLong ZCALLBACK win32_read_file_func OF((voidpf opaque, voidpf stream, void*
buf, uLong size)); |
44 uLong ZCALLBACK win32_write_file_func OF((voidpf opaque, voidpf stream, const
void* buf, uLong size)); | 45 uLong ZCALLBACK win32_write_file_func OF((voidpf opaque, voidpf stream, const
void* buf, uLong size)); |
45 ZPOS64_T ZCALLBACK win32_tell64_file_func OF((voidpf opaque, voidpf stream)); | 46 ZPOS64_T ZCALLBACK win32_tell64_file_func OF((voidpf opaque, voidpf stream)); |
46 long ZCALLBACK win32_seek64_file_func OF((voidpf opaque, voidpf stream, ZPOS
64_T offset, int origin)); | 47 long ZCALLBACK win32_seek64_file_func OF((voidpf opaque, voidpf stream, ZPOS
64_T offset, int origin)); |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 { | 460 { |
460 pzlib_filefunc_def->zopen64_file = win32_open64_file_funcW; | 461 pzlib_filefunc_def->zopen64_file = win32_open64_file_funcW; |
461 pzlib_filefunc_def->zread_file = win32_read_file_func; | 462 pzlib_filefunc_def->zread_file = win32_read_file_func; |
462 pzlib_filefunc_def->zwrite_file = win32_write_file_func; | 463 pzlib_filefunc_def->zwrite_file = win32_write_file_func; |
463 pzlib_filefunc_def->ztell64_file = win32_tell64_file_func; | 464 pzlib_filefunc_def->ztell64_file = win32_tell64_file_func; |
464 pzlib_filefunc_def->zseek64_file = win32_seek64_file_func; | 465 pzlib_filefunc_def->zseek64_file = win32_seek64_file_func; |
465 pzlib_filefunc_def->zclose_file = win32_close_file_func; | 466 pzlib_filefunc_def->zclose_file = win32_close_file_func; |
466 pzlib_filefunc_def->zerror_file = win32_error_file_func; | 467 pzlib_filefunc_def->zerror_file = win32_error_file_func; |
467 pzlib_filefunc_def->opaque = NULL; | 468 pzlib_filefunc_def->opaque = NULL; |
468 } | 469 } |
OLD | NEW |