1 #ifndef winx68k_fileio_h 2 #define winx68k_fileio_h 3 4 #include "common.h" 5 #include "dosio.h" 6 7 #define FILEH HANDLE 8 9 #define FSEEK_SET 0 10 #define FSEEK_CUR 1 11 #define FSEEK_END 2 12 13 LPSTR getFileName(LPSTR filename); 14 //#define getFileName GetFileName 15 16 FILEH File_Open(BYTE *filename); 17 FILEH File_Create(BYTE *filename); 18 DWORD File_Seek(FILEH handle, long pointer, short mode); 19 DWORD File_Read(FILEH handle, void *data, DWORD length); 20 DWORD File_Write(FILEH handle, void *data, DWORD length); 21 short File_Close(FILEH handle); 22 short File_Attr(BYTE *filename); 23 #define File_Open file_open 24 #define File_Create file_create 25 #define File_Seek file_seek 26 #define File_Read file_lread 27 #define File_Write file_lwrite 28 #define File_Close file_close 29 #define File_Attr file_attr 30 31 void File_SetCurDir(BYTE *exename); 32 FILEH File_OpenCurDir(BYTE *filename); 33 FILEH File_CreateCurDir(BYTE *filename); 34 short File_AttrCurDir(BYTE *filename); 35 #define File_SetCurDir file_setcd 36 #define File_OpenCurDir file_open_c 37 #define File_CreateCurDir file_create_c 38 #define File_AttrCurDir file_attr_c 39 40 #endif 41