'zlib.sbp===
'
Const  Z_NULL  =0
Const Z_OK =0
Const Z_NO_FLUSH =0
Const Z_STREAM_END   = 1

Const MAX_WBITS   =15
Type z_stream
	next_in As *Byte  ' next input byte 
	avail_in As DWord  ' number of bytes available at next_in 
	total_in As DWord  ' total nb of input bytes read so far 

	next_out As *Byte ' next output byte should be put there 
	avail_out As DWord ' remaining free space at next_out 
	total_out As DWord ' total nb of bytes output so far 

	msg As *Byte      ' last error message, NULL if no error 
	state As VoidPtr ' not visible by applications 

	zalloc As VoidPtr  ' used to allocate the internal state 
	zfree As VoidPtr   ' used to free the internal state 
	opaque As VoidPtr  ' private data object passed to zalloc and zfree 

	data_type As Long  ' best guess about the data type: binary or text 
	adler As DWord      ' adler32 value of the uncompressed data 
	reserved As DWord   ' reserved for future use 
End Type

Declare Function zlibVersion Lib"zlib1.dll" () As *Byte

Declare Function inflateInit2_ Lib"zlib1.dll" (strm As *z_stream, windowBits As Long, version As *Byte, stream_size As Long) As Long

Declare Function inflate Lib"zlib1.dll" (strm As *z_stream, flush As Long) As Long
Declare Function inflateEnd Lib"zlib1.dll" (strm As *z_stream) As Long
