FIL構造体は、個々のファイルの状態を保持し、アプリケーション側で確保・管理されます。アプリケーションから変更可能なメンバはありません。
typedef struct _FIL {
DWORD fptr; // File R/W pointer
DWORD fsize; // File size
DWORD org_clust; // File start cluster
DWORD curr_clust; // Current cluster
DWORD curr_sect; // Current sector
DWORD dir_sect; // Sector# containing the directory entry
BYTE* dir_ptr; // Ponter to the directory entry in the window
BYTE flag; // File status flags
BYTE sect_clust; // Left sectors in current cluster
BYTE buffer[512]; // File R/W buffer
} FIL;
typedef struct _FIL {
DWORD fptr; // File R/W pointer
DWORD fsize; // File size
WORD org_clust; // File start cluster
WORD curr_clust; // Current cluster
DWORD curr_sect; // Current sector
DWORD dir_sect; // Sector# containing the directory entry
BYTE* dir_ptr; // Ponter to the directory entry in the window
BYTE flag; // File status flags
BYTE sect_clust; // Left sectors in current cluster
} FIL;