MAXPNAME	EQU	13 
MAXMETANAME	EQU	24 
CNYBUFLEN	EQU	1024 

find_buf_cominfo	STRUC
find_buf_drive	DB	?
find_buf_name	DB	MAXMETANAME DUP (?)
find_buf_sattr	DB	?
find_buf_LastEnt	DW	?
find_buf_DirStart	DW	?
find_buf_hVPB	DW	?
find_buf_NetID	DB	2 DUP (?)
find_buf_flags	DB	?
find_buf_cominfo	ENDS

OLD_SEARCH_INFO_SIZE	EQU	21   

find_buf32	STRUC
find_buf32_handle	DW	?
find_buf32_signature	DW	?
find_buf32_position	DD	?
find_buf32_name	DB	1 DUP (?)
find_buf32	ENDS


find_buf	STRUC
find_buf_prefix	DB	OLD_SEARCH_INFO_SIZE DUP (?)
find_buf_attr	DB	?
find_buf_time	DW	?
find_buf_date	DW	?
find_buf_size_l	DW	?
find_buf_size_h	DW	?
find_buf_pname	DB	MAXPNAME DUP (?)
find_buf	ENDS


find_buf_search	STRUC
fbs_prefix	DB	SIZE find_buf_cominfo DUP (?)
fbs_dir_entry	DB	SIZE dir_entry DUP (?)
find_buf_search	ENDS

SRCHBUFSIZE	EQU	SIZE          find_buf_search 

api_fbuf	STRUC
api_fbuf_crtdate	DW	?
api_fbuf_crttime	DW	?
api_fbuf_accdate	DW	?
api_fbuf_acctime	DW	?
api_fbuf_wrtdate	DW	?
api_fbuf_wrttime	DW	?
api_fbuf_size_l	DW	?
api_fbuf_size_h	DW	?
api_fbuf_alloc_l	DW	?
api_fbuf_alloc_h	DW	?
api_fbuf_attr	DW	?
api_fbuf_namelen	DB	?
api_fbuf_pname	DB	MAXPNAME DUP (?)
api_fbuf	ENDS


api_fbuf2	STRUC
api_fbuf2_crtdate	DW	?
api_fbuf2_crttime	DW	?
api_fbuf2_accdate	DW	?
api_fbuf2_acctime	DW	?
api_fbuf2_wrtdate	DW	?
api_fbuf2_wrttime	DW	?
api_fbuf2_size	DD	?
api_fbuf2_alloc	DD	?
api_fbuf2_attr	DW	?
api_fbuf2_cblist	DD	?
api_fbuf2_namelen	DB	?
api_fbuf2_pname	DB	MAXPNAME DUP (?)
api_fbuf2	ENDS


ifs_fbuf	STRUC
ifs_fbuf_crtdate	DW	?
ifs_fbuf_crttime	DW	?
ifs_fbuf_accdate	DW	?
ifs_fbuf_acctime	DW	?
ifs_fbuf_wrtdate	DW	?
ifs_fbuf_wrttime	DW	?
ifs_fbuf_size_l	DW	?
ifs_fbuf_size_h	DW	?
ifs_fbuf_alloc_l	DW	?
ifs_fbuf_alloc_h	DW	?
ifs_fbuf_attr	DW	?
ifs_fbuf_namelen	DB	?
ifs_fbuf_pname	DB	MAXCOMPLEN DUP (?)
ifs_fbuf	ENDS


ssi_fbuf	STRUC
ssi_fbuf_Position	DD	?
ssi_fbuf_common	DB	SIZE api_fbuf DUP (?)
ssi_fbuf	ENDS


ssi_fbuf2	STRUC
ssi_fbuf2_Position	DD	?
ssi_fbuf2_common	DB	SIZE api_fbuf2 DUP (?)
ssi_fbuf2	ENDS


ssi_FATFS_Position	STRUC
ssi_LastEnt	DW	?
ssi_DirStart	DW	?
ssi_FATFS_Position	ENDS

.errnz (size ssi_FATFS_Position - 4)
.errnz ((size ssi_FATFS_Position) - (ssi_fbuf2_common - ssi_fbuf2_Position))
.errnz ((size ssi_FATFS_Position) - (ssi_fbuf_common  - ssi_fbuf_Position))

FSSRCH_NOPOS	EQU	0            
FSSRCH_POS	EQU	1            

CNY_GLOBAL	STRUC
CNY_Next	DW	?
CNY_PID	DW	?
CNY_hVPB	DW	?
CNY_InfoLevel	DW	?
CNY_FSC	DD	?
CNY_Flags	DB	?
CNY_BUF	DB	CNYBUFLEN DUP (?)
CNY_GLOBAL	ENDS


FNY_GLOBAL	STRUC
FNY_Next	DW	?
FNY_PID	DW	?
FNY_SubSys_Handle	DW	?
FNY_hVPB	DW	?
FNY_FSC	DD	?
FNY_InfoLevel	DW	?
FNY_Flags	DB	?
FNY_GLOBAL	ENDS


CNY_FS	STRUC
CNY_FS_Handle	DW	?
CNY_FS_ChangeCnt	DW	?
CNY_FS_WrkChangeCnt	DW	?
CNY_FS_Attribute	DW	?
CNY_FS_hVPB	DW	?
CNY_FS_WILDPTR	DW	?
CNY_FS_WFPLEN	DW	?
CNY_FS_WFP	DB	PMPATHLEN DUP (?)
CNY_FS	ENDS

fFNY_FREE	EQU	0            
fFNY_INUSE	EQU	1            
fFNY_IN_PROG	EQU	2            
fFNY_CLOSED	EQU	4            

FNY_FAT	STRUC
FNY_FAT_Handle	DW	?
FNY_FAT_ChangeCnt	DW	?
FNY_FAT_WrkChangeCnt	DW	?
FNY_FAT_Attribute	DW	?
FNY_FAT_hVPB	DW	?
FNY_FAT_WILDPTR	DW	?
FNY_FAT_WFPLEN	DW	?
FNY_FAT_WFP	DB	PMPATHLEN DUP (?)
FNY_FAT	ENDS

fFNY_INVALID_hVPB	EQU	0ffffH           
fFNY_NO_WILDCHAR	EQU	0                
fFNY_OBJ_REMOVED	EQU	0ffffH           
fFNY_DELETE	EQU	1                
fFNY_NODELETE	EQU	0                
FNOTIFY_GROWDELT	EQU	2                
FNOTIFY_INFOLEVEL1	EQU	1                
CONBUFSIZE	EQU	SIZE   find_buf_cominfo 
ALLOCSRCH	EQU	0FFFFH           
BASESRCH	EQU	2                
fDFF_ATTR_NOT_NORM	EQU	00008000H   
fDFF_ATTR_ARCHIVE	EQU	00000020H   
fDFF_ATTR_SUBDIR	EQU	00000010H   
fDFF_ATTR_VOLLABEL	EQU	00000008H   
fDFF_ATTR_SYSTEM	EQU	00000004H   
fDFF_ATTR_HIDDEN	EQU	00000002H   
fDFF_ATTR_READ_ONLY	EQU	00000001H   
