SEEK_SET = 0
SEEK_CUR = 1
SEEK_END = 2

_A_NORMAL EQU	00h
_A_RDONLY EQU	01h
_A_HIDDEN EQU	02h
_A_SYSTEM EQU	04h
_A_VOLID  EQU	08h
_A_SUBDIR EQU	10h
_A_ARCH	  EQU	20h

_A_STDFILES = _A_ARCH or _A_RDONLY or _A_SYSTEM or _A_SUBDIR
_A_ALLFILES = _A_STDFILES or _A_HIDDEN

S_FFBLK		STRUC
ff_reserved	DB 21 dup(?)
ff_attrib	DB ?
ff_ftime	DW ?
ff_fdate	DW ?
ff_fsize	DD ?
ff_name		DB 13 dup(?)
S_FFBLK		ENDS

S_WFBLK		STRUC
wf_attrib	DW ?	; DWORD File attributes
wf_attribdx	DW ?
wf_timecreate	DW ?	; QWORD	File creation time
wf_datecreate	DW ?
wf_createdate	DD ?
wf_timeaccess	DW ?	; QWORD	Last access time
wf_dateaccess	DW ?
wf_accessdate	DD ?
wf_timemodified DW ?	; QWORD	Last modification time
wf_datemodified DW ?
wf_modified	DD ?
wf_sizedx	DD ?	; QWORD	File size
wf_sizeax	DD ?	; - low DWORD
wf_reserved	DB 8 dup(?)
wf_name		DB 260 dup(?)
wf_shortname	DB  14 dup(?)
S_WFBLK		ENDS	;  318 byte

S_DISKFREE	STRUC
df_size		DW ?
df_version	DW ?
df_sclus	DD ?
df_bsec		DD ?
df_avail	DD ?
df_total	DD ?
df_phavail	DD ?
df_phtotal	DD ?
df_alavail	DD ?
df_altotal	DD ?
df_reserved	DB 8 dup(?)
S_DISKFREE 	ENDS

DT_BASEYEAR	= 1980

getday		proto
getsec		proto
getmin		proto
gethour		proto
getmnd		proto
getyear		proto
getdatew	proto
dwdosdate	proto
twdostime	proto

getfattr	proto pascal filename:dword
filexist	proto pascal filename:dword
remove		proto pascal filename:dword
rename		proto pascal oldname:dword, newname:dword
wlongname 	proto pascal path:dword, filename:dword
wlongpath 	proto pascal path:dword, filename:dword
wfindfirst 	proto pascal filemask:dword, wfblk:dword, attrib:word
wfindnext 	proto pascal wfblk:dword, handle:word
wcloseff 	proto pascal handle:word
wshortname 	proto pascal path:dword
getftime	proto pascal handle:word
findfirst	proto pascal :DWORD, :DWORD, :WORD
findnext	proto pascal :DWORD
setfdate	proto pascal :WORD, :WORD, :WORD
setfattr	proto pascal :DWORD, :WORD
wsetaccessdate	proto pascal :WORD, :WORD, :WORD
wsetcreatedate	proto pascal :WORD, :WORD, :WORD
wsetfattr	proto pascal :DWORD, :WORD
wgetfattr	proto pascal :DWORD
wsetacdate	proto pascal :DWORD, :WORD
wsetwrdate	proto pascal :DWORD, :WORD, :WORD
wsetcrdate	proto pascal :DWORD, :WORD, :WORD
wgetacdate	proto pascal :DWORD
wgetwrdate	proto pascal :DWORD
wgetcrdate	proto pascal :DWORD
wfullpath	proto pascal :DWORD, :WORD
wvolinfo	proto pascal :DWORD, :DWORD
wgetcwd		proto pascal :DWORD, :WORD
removefile	proto pascal filename:dword


