MAXFBLOCK	= 3000
WMAXFBLOCK	= 3FFFh

_A_FATTRIB	= 003Fh
_A_SELECTED	= 0040h
_A_UPDIR	= 0080h
_A_CDROOM	= 0100h
_A_ENCRYPTED	= 0200h
_A_EXTLOCHD	= 0400h
_A_ARCHEXT	= 4000h
_A_ARCHZIP	= 8000h
_A_ARCHIVE	= 0C000h

_W_PANELID	= 0001h
_W_VISIBLE	= 0002h
_W_MINISTATUS	= 0004h
_W_WIDEVIEW	= 0008h
_W_LONGNAME	= 0010h
_W_DETAIL	= 0020h
_W_HIDDEN	= 0040h
_W_FLOPPY	= 0080h
_W_CDROOM	= 0100h
_W_NETWORK	= 0180h
_W_SORTNAME	= 0000h
_W_SORTTYPE     = 0200h
_W_SORTDATE     = 0400h
_W_SORTSIZE	= 0600h
_W_NOSORT	= 0800h
_W_SORTSUB	= 1000h
_W_DRVINFO	= 2000h
_W_ARCHEXT	= 4000h
_W_ARCHZIP	= 8000h
_W_ARCHIVE	= _W_ARCHZIP or _W_ARCHEXT

S_FBLK		STRUC
fb_flag		DW ?
fb_time		DW ?
fb_date		DW ?
fb_size		DD ?
fb_name		DB 2 dup(?)
S_FBLK		ENDS

S_PATH		STRUC
wp_flag		DW ?
wp_mask		DB  32 dup(?)
wp_path		DB 260 dup(?)
wp_file		DB 260 dup(?)
wp_arch		DB 260 dup(?)
S_PATH		ENDS	;  814 byte

S_WSUB		STRUC
ws_count	DW ?
ws_maxfb	DW ?
ws_flag		DD ?
ws_mask		DD ?
ws_path		DD ?
ws_file		DD ?
ws_arch		DD ?
ws_fcb		DD ?
S_WSUB		ENDS	; 28 byte

fbcolor		PROTO
fbputsl		PROTO
fbputsd		PROTO
fbputll		PROTO
fbputld		PROTO
fbputdate	PROTO
fbputtime	PROTO
fbputfile	PROTO
fbupdir     	PROTO PASCAL :WORD
fbinvert    	PROTO PASCAL :DWORD
fbselect    	PROTO PASCAL :DWORD
fballocff   	PROTO PASCAL :DWORD, :WORD
fballocwf   	PROTO PASCAL :DWORD, :WORD
fbstaticff  	PROTO PASCAL :DWORD

wsopen	    	PROTO PASCAL :DWORD
wsclose    	PROTO PASCAL :DWORD
wsinit     	PROTO PASCAL :DWORD
wsfree     	PROTO PASCAL :DWORD
wsread     	PROTO PASCAL :DWORD
wssort     	PROTO PASCAL :DWORD
wssetflag  	PROTO PASCAL :DWORD
wslocal    	PROTO PASCAL :DWORD
wschdrv    	PROTO PASCAL :DWORD, :WORD
wsearch    	PROTO PASCAL :DWORD, :DWORD
wsfblk     	PROTO PASCAL :DWORD, :WORD
wsffirst   	PROTO PASCAL :DWORD
wsmkdir    	PROTO PASCAL :DWORD, :DWORD
wsmkdirlocal	PROTO PASCAL :DWORD
wsetprogress	PROTO
wdlgopen 	PROTO PASCAL :DWORD, :DWORD, :WORD
wgetfile	PROTO
wscopy_open	PROTO
wscopy_remove   PROTO
wsopenarch 	PROTO PASCAL :DWORD
wzipread   	PROTO PASCAL :DWORD
wzipopen	PROTO
wzipclose       PROTO
wsdecomp 	PROTO PASCAL :DWORD, :DWORD, :DWORD
wzipadd		PROTO PASCAL :DWORD, :WORD, :WORD, :WORD
wzipdel 	PROTO PASCAL :DWORD, :DWORD, :WORD
wzipcopy	PROTO PASCAL :DWORD, :DWORD, :DWORD
wzipcopypath 	PROTO PASCAL :DWORD, :DWORD, :DWORD
wzipcopyfile 	PROTO PASCAL :DWORD, :DWORD, :DWORD
wzipfindentry	PROTO PASCAL :DWORD, :WORD
fbupdir 	PROTO PASCAL :WORD
testentryname 	PROTO PASCAL :DWORD, :DWORD
wsclrsel 	PROTO PASCAL :DWORD

