Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  1. /* Typedefs and constants for use with date.c */
  2. typedef struct {
  3. BYTE dayofweek;
  4. BYTE day;
  5. BYTE month;
  6. WORD year;
  7. } DOSDATE;
  8. typedef DOSDATE *PDOSDATE;
  9. #define GDS_SHORT 1
  10. #define GDS_LONG 2
  11. #define GDS_DAYOFWEEK 4
  12. #define GDS_NODAY 8
  13. typedef struct {
  14. BYTE hundredths;
  15. BYTE seconds;
  16. BYTE minutes;
  17. BYTE hour;
  18. } DOSTIME;
  19. typedef DOSTIME *PDOSTIME;
  20. #define GTS_DEFAULT 0
  21. #define GTS_SECONDS 1
  22. #define GTS_HUNDREDTHS 2
  23. #define GTS_LEADINGZEROS 4
  24. #define GTS_LEADINGSPACE 8
  25. #define GTS_12HOUR 16
  26. #define GTS_24HOUR 32
  27. #define IDS_DATESTRINGS 32736
  28. #define IDS_MONTHS IDS_DATESTRINGS
  29. #define IDS_DAYSOFWEEK IDS_MONTHS+12
  30. #define IDS_DAYABBREVS IDS_DAYSOFWEEK+7
  31. #define IDS_SEPSTRINGS IDS_DAYABBREVS+7
  32. #define PD_ERRFORMAT -1
  33. #define PD_ERRSUBRANGE -2
  34. #define PD_ERRRANGE -3
  35. BOOL FAR APIENTRY InitTimeDate(HANDLE, UINT);
  36. BOOL FAR APIENTRY InitLongTimeDate(UINT);
  37. VOID FAR APIENTRY GetDosTime(PDOSTIME);
  38. VOID FAR APIENTRY GetDosDate(PDOSDATE);
  39. BOOL FAR APIENTRY ValidateDosDate(PDOSDATE);
  40. INT FAR APIENTRY GetTimeString(PDOSTIME, CHAR *, WORD);
  41. INT FAR APIENTRY GetDateString(PDOSDATE, CHAR *, WORD);
  42. INT FAR APIENTRY GetLongDateString(PDOSDATE, CHAR *, WORD);
  43. INT FAR APIENTRY ParseTimeString(PDOSTIME, CHAR *);
  44. INT FAR APIENTRY ParseDateString(PDOSDATE, CHAR *);