20#ifndef INVALID_HANDLE_VALUE
21#define INVALID_HANDLE_VALUE (0xFFFFFFFF)
24#ifndef INVALID_SET_FILE_POINTER
25#define INVALID_SET_FILE_POINTER ((DWORD)-1)
30#if defined(WINAPI_FAMILY_PARTITION) && (!(defined(IOWIN32_USING_WINRT_API)))
32#if !defined(WINAPI_FAMILY_ONE_PARTITION)
33#define WINAPI_FAMILY_ONE_PARTITION(PartitionSet, Partition) ((WINAPI_FAMILY & PartitionSet) == Partition)
36#if WINAPI_FAMILY_ONE_PARTITION(WINAPI_FAMILY, WINAPI_PARTITION_APP)
37#define IOWIN32_USING_WINRT_API 1
57 DWORD* lpdwDesiredAccess,
58 DWORD* lpdwCreationDisposition,
60 DWORD* lpdwFlagsAndAttributes)
62 *lpdwDesiredAccess = *lpdwShareMode = *lpdwFlagsAndAttributes = *lpdwCreationDisposition = 0;
104 DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
109#ifdef IOWIN32_USING_WINRT_API
133 DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
138#ifdef IOWIN32_USING_WINRT_API
157 DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
162#ifdef IOWIN32_USING_WINRT_API
177 DWORD dwDesiredAccess,dwCreationDisposition,dwShareMode,dwFlagsAndAttributes ;
182#ifdef IOWIN32_USING_WINRT_API
248#ifdef IOWIN32_USING_WINRT_API
254 if (dwNewPos == 0xFFFFFFFF)
257 if ((newPos !=
NULL) && (fOk))
316 DWORD dwMoveMethod=0xFFFFFFFF;
354 DWORD dwMoveMethod=0xFFFFFFFF;
#define ReadFile(a, b, c, d, e)
#define CreateFileA(a, b, c, d, e, f, g)
#define MultiByteToWideChar
BOOL WINAPI SetFilePointerEx(HANDLE hFile, LARGE_INTEGER liDistanceToMove, PLARGE_INTEGER lpNewFilePointer, DWORD dwMoveMethod)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
WINBASEAPI HANDLE WINAPI CreateFile2(LPCWSTR, DWORD, DWORD, DWORD, LPCREATEFILE2_EXTENDED_PARAMETERS)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define ZLIB_FILEFUNC_MODE_READWRITEFILTER
#define ZLIB_FILEFUNC_MODE_EXISTING
#define ZLIB_FILEFUNC_SEEK_CUR
#define ZLIB_FILEFUNC_SEEK_SET
#define ZLIB_FILEFUNC_MODE_CREATE
#define ZLIB_FILEFUNC_SEEK_END
#define ZLIB_FILEFUNC_MODE_READ
unsigned long long int ZPOS64_T
void fill_win32_filefunc64(zlib_filefunc64_def *pzlib_filefunc_def)
long ZCALLBACK win32_seek_file_func(voidpf opaque, voidpf stream, uLong offset, int origin)
voidpf ZCALLBACK win32_open64_file_funcA(voidpf opaque, const void *filename, int mode)
void fill_win32_filefunc64W(zlib_filefunc64_def *pzlib_filefunc_def)
int ZCALLBACK win32_close_file_func(voidpf opaque, voidpf stream)
#define INVALID_HANDLE_VALUE
uLong ZCALLBACK win32_write_file_func(voidpf opaque, voidpf stream, const void *buf, uLong size)
void fill_win32_filefunc(zlib_filefunc_def *pzlib_filefunc_def)
ZPOS64_T ZCALLBACK win32_tell64_file_func(voidpf opaque, voidpf stream)
long ZCALLBACK win32_seek64_file_func(voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)
long ZCALLBACK win32_tell_file_func(voidpf opaque, voidpf stream)
int ZCALLBACK win32_error_file_func(voidpf opaque, voidpf stream)
voidpf ZCALLBACK win32_open64_file_func(voidpf opaque, const void *filename, int mode)
static voidpf win32_build_iowin(HANDLE hFile)
voidpf ZCALLBACK win32_open_file_func(voidpf opaque, const char *filename, int mode)
static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMoveMethod)
void fill_win32_filefunc64A(zlib_filefunc64_def *pzlib_filefunc_def)
static void win32_translate_open_mode(int mode, DWORD *lpdwDesiredAccess, DWORD *lpdwCreationDisposition, DWORD *lpdwShareMode, DWORD *lpdwFlagsAndAttributes)
uLong ZCALLBACK win32_read_file_func(voidpf opaque, voidpf stream, void *buf, uLong size)
voidpf ZCALLBACK win32_open64_file_funcW(voidpf opaque, const void *filename, int mode)
static const WCHAR filenameW[]
write_file_func zwrite_file
open64_file_func zopen64_file
read_file_func zread_file
tell64_file_func ztell64_file
close_file_func zclose_file
seek64_file_func zseek64_file
testerror_file_func zerror_file
seek_file_func zseek_file
open_file_func zopen_file
testerror_file_func zerror_file
write_file_func zwrite_file
read_file_func zread_file
close_file_func zclose_file
tell_file_func ztell_file
DWORD WINAPI GetLastError(void)