--- xmil/win9x/dosio.h 2004/08/05 16:47:26 1.3 +++ xmil/win9x/dosio.h 2004/08/08 06:59:22 1.4 @@ -1,6 +1,6 @@ -#define FILEH HANDLE -#define FILEH_INVALID (INVALID_HANDLE_VALUE) +#define FILEH HANDLE +#define FILEH_INVALID (INVALID_HANDLE_VALUE) enum { FSEEK_SET = 0, @@ -8,6 +8,18 @@ enum { FSEEK_END = 2 }; +typedef struct { + UINT16 year; // cx + UINT8 month; // dh + UINT8 day; // dl +} DOSDATE; + +typedef struct { + UINT8 hour; // ch + UINT8 minute; // cl + UINT8 second; // dh +} DOSTIME; + #ifdef __cplusplus extern "C" { @@ -25,6 +37,7 @@ UINT __stdcall file_read(FILEH handle, v UINT __stdcall file_write(FILEH handle, const void *data, UINT length); short __stdcall file_close(FILEH handle); UINT __stdcall file_getsize(FILEH handle); +short file_getdatetime(FILEH handle, DOSDATE *dosdate, DOSTIME *dostime); short __stdcall file_delete(const OEMCHAR *path); short __stdcall file_attr(const OEMCHAR *path); short __stdcall file_dircreate(const OEMCHAR *path); @@ -35,6 +48,7 @@ OEMCHAR * __stdcall file_getcd(const OEM FILEH __stdcall file_open_c(const OEMCHAR *path); FILEH __stdcall file_open_rb_c(const OEMCHAR *path); FILEH __stdcall file_create_c(const OEMCHAR *path); +short __stdcall file_delete_c(const OEMCHAR *path); short __stdcall file_attr_c(const OEMCHAR *path); #define file_cpyname(a, b, c) milstr_ncpy(a, b, c)