Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
iowin32.c File Reference
#include <stdlib.h>
#include "zlib.h"
#include "ioapi.h"
#include "iowin32.h"
Include dependency graph for iowin32.c:

Go to the source code of this file.

Classes

struct  WIN32FILE_IOWIN
 

Macros

#define INVALID_HANDLE_VALUE   (0xFFFFFFFF)
 
#define INVALID_SET_FILE_POINTER   ((DWORD)-1)
 

Functions

voidpf win32_open_file_func OF ((voidpf opaque, const char *filename, int mode))
 
uLong win32_read_file_func OF ((voidpf opaque, voidpf stream, void *buf, uLong size))
 
uLong win32_write_file_func OF ((voidpf opaque, voidpf stream, const void *buf, uLong size))
 
ZPOS64_T win32_tell64_file_func OF ((voidpf opaque, voidpf stream))
 
long win32_seek64_file_func OF ((voidpf opaque, voidpf stream, ZPOS64_T offset, int origin))
 
static void win32_translate_open_mode (int mode, DWORD *lpdwDesiredAccess, DWORD *lpdwCreationDisposition, DWORD *lpdwShareMode, DWORD *lpdwFlagsAndAttributes)
 
static voidpf win32_build_iowin (HANDLE hFile)
 
voidpf win32_open64_file_func (voidpf opaque, const void *filename, int mode)
 
voidpf win32_open64_file_funcA (voidpf opaque, const void *filename, int mode)
 
voidpf win32_open64_file_funcW (voidpf opaque, const void *filename, int mode)
 
voidpf win32_open_file_func (voidpf opaque, const char *filename, int mode)
 
uLong win32_read_file_func (voidpf opaque, voidpf stream, void *buf, uLong size)
 
uLong win32_write_file_func (voidpf opaque, voidpf stream, const void *buf, uLong size)
 
static BOOL MySetFilePointerEx (HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMoveMethod)
 
long win32_tell_file_func (voidpf opaque, voidpf stream)
 
ZPOS64_T win32_tell64_file_func (voidpf opaque, voidpf stream)
 
long win32_seek_file_func (voidpf opaque, voidpf stream, uLong offset, int origin)
 
long win32_seek64_file_func (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)
 
int win32_close_file_func (voidpf opaque, voidpf stream)
 
int win32_error_file_func (voidpf opaque, voidpf stream)
 
void fill_win32_filefunc (zlib_filefunc_def *pzlib_filefunc_def)
 
void fill_win32_filefunc64 (zlib_filefunc64_def *pzlib_filefunc_def)
 
void fill_win32_filefunc64A (zlib_filefunc64_def *pzlib_filefunc_def)
 
void fill_win32_filefunc64W (zlib_filefunc64_def *pzlib_filefunc_def)
 

Class Documentation

struct WIN32FILE_IOWIN

Definition at line 43 of file iowin32.c.

Collaboration diagram for WIN32FILE_IOWIN:
Collaboration graph
Class Members
int error
HANDLE hf

Macro Definition Documentation

#define INVALID_HANDLE_VALUE   (0xFFFFFFFF)

Definition at line 21 of file iowin32.c.

#define INVALID_SET_FILE_POINTER   ((DWORD)-1)

Definition at line 25 of file iowin32.c.

Function Documentation

void fill_win32_filefunc ( zlib_filefunc_def pzlib_filefunc_def)

Definition at line 413 of file iowin32.c.

void fill_win32_filefunc64 ( zlib_filefunc64_def pzlib_filefunc_def)

Definition at line 425 of file iowin32.c.

void fill_win32_filefunc64A ( zlib_filefunc64_def pzlib_filefunc_def)

Definition at line 438 of file iowin32.c.

void fill_win32_filefunc64W ( zlib_filefunc64_def pzlib_filefunc_def)

Definition at line 451 of file iowin32.c.

static BOOL MySetFilePointerEx ( HANDLE  hFile,
LARGE_INTEGER  pos,
LARGE_INTEGER *  newPos,
DWORD  dwMoveMethod 
)
static

Definition at line 240 of file iowin32.c.

voidpf win32_open_file_func OF ( (voidpf opaque, const char *filename, int mode)  )
uLong win32_read_file_func OF ( (voidpf opaque, voidpf stream, void *buf, uLong size )
uLong win32_write_file_func OF ( (voidpf opaque, voidpf stream, const void *buf, uLong size )
ZPOS64_T win32_tell64_file_func OF ( (voidpf opaque, voidpf stream)  )
long win32_seek64_file_func OF ( (voidpf opaque, voidpf stream, ZPOS64_T offset, int origin)  )
static voidpf win32_build_iowin ( HANDLE  hFile)
static

Definition at line 76 of file iowin32.c.

int win32_close_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 385 of file iowin32.c.

int win32_error_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 403 of file iowin32.c.

voidpf win32_open64_file_func ( voidpf  opaque,
const void *  filename,
int  mode 
)

Definition at line 95 of file iowin32.c.

voidpf win32_open64_file_funcA ( voidpf  opaque,
const void *  filename,
int  mode 
)

Definition at line 124 of file iowin32.c.

voidpf win32_open64_file_funcW ( voidpf  opaque,
const void *  filename,
int  mode 
)

Definition at line 148 of file iowin32.c.

voidpf win32_open_file_func ( voidpf  opaque,
const char *  filename,
int  mode 
)

Definition at line 168 of file iowin32.c.

uLong win32_read_file_func ( voidpf  opaque,
voidpf  stream,
void *  buf,
uLong  size 
)

Definition at line 197 of file iowin32.c.

long win32_seek64_file_func ( voidpf  opaque,
voidpf  stream,
ZPOS64_T  offset,
int  origin 
)

Definition at line 346 of file iowin32.c.

long win32_seek_file_func ( voidpf  opaque,
voidpf  stream,
uLong  offset,
int  origin 
)

Definition at line 308 of file iowin32.c.

ZPOS64_T win32_tell64_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 283 of file iowin32.c.

long win32_tell_file_func ( voidpf  opaque,
voidpf  stream 
)

Definition at line 260 of file iowin32.c.

static void win32_translate_open_mode ( int  mode,
DWORD *  lpdwDesiredAccess,
DWORD *  lpdwCreationDisposition,
DWORD *  lpdwShareMode,
DWORD *  lpdwFlagsAndAttributes 
)
static

Definition at line 50 of file iowin32.c.

uLong win32_write_file_func ( voidpf  opaque,
voidpf  stream,
const void *  buf,
uLong  size 
)

Definition at line 219 of file iowin32.c.