windows-nt/Source/XPSP1/NT/shell/osshell/accesory/common/date.h

53 lines
1.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/* Typedefs and constants for use with date.c */
typedef struct {
BYTE dayofweek;
BYTE day;
BYTE month;
WORD year;
} DOSDATE;
typedef DOSDATE *PDOSDATE;
#define GDS_SHORT 1
#define GDS_LONG 2
#define GDS_DAYOFWEEK 4
#define GDS_NODAY 8
typedef struct {
BYTE hundredths;
BYTE seconds;
BYTE minutes;
BYTE hour;
} DOSTIME;
typedef DOSTIME *PDOSTIME;
#define GTS_DEFAULT 0
#define GTS_SECONDS 1
#define GTS_HUNDREDTHS 2
#define GTS_LEADINGZEROS 4
#define GTS_LEADINGSPACE 8
#define GTS_12HOUR 16
#define GTS_24HOUR 32
#define IDS_DATESTRINGS 32736
#define IDS_MONTHS IDS_DATESTRINGS
#define IDS_DAYSOFWEEK IDS_MONTHS+12
#define IDS_DAYABBREVS IDS_DAYSOFWEEK+7
#define IDS_SEPSTRINGS IDS_DAYABBREVS+7
#define PD_ERRFORMAT -1
#define PD_ERRSUBRANGE -2
#define PD_ERRRANGE -3
BOOL FAR APIENTRY InitTimeDate(HANDLE, UINT);
BOOL FAR APIENTRY InitLongTimeDate(UINT);
VOID FAR APIENTRY GetDosTime(PDOSTIME);
VOID FAR APIENTRY GetDosDate(PDOSDATE);
BOOL FAR APIENTRY ValidateDosDate(PDOSDATE);
INT FAR APIENTRY GetTimeString(PDOSTIME, CHAR *, WORD);
INT FAR APIENTRY GetDateString(PDOSDATE, CHAR *, WORD);
INT FAR APIENTRY GetLongDateString(PDOSDATE, CHAR *, WORD);
INT FAR APIENTRY ParseTimeString(PDOSTIME, CHAR *);
INT FAR APIENTRY ParseDateString(PDOSDATE, CHAR *);