Leaked source code of windows server 2003
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.

20 lines
858 B

  1. #define INCRSYS_YEAR 0x0001
  2. #define INCRSYS_MONTH 0x0002
  3. #define INCRSYS_WEEK 0x0004
  4. #define INCRSYS_DAY 0x0008
  5. #define INCRSYS_HOUR 0x0010
  6. #define INCRSYS_MINUTE 0x0020
  7. #define INCRSYS_SECOND 0x0040
  8. int GetWeekNumber(const SYSTEMTIME *pst, int dowFirst, int woyFirst);
  9. int CmpDate(const SYSTEMTIME *pst1, const SYSTEMTIME *pst2);
  10. int CmpSystemtime(const SYSTEMTIME *pst1, const SYSTEMTIME *pst2);
  11. void IncrSystemTime(SYSTEMTIME *pstSrc, SYSTEMTIME *pstDest, LONG delta, LONG flags);
  12. int GetDaysForMonth(int year, int month);
  13. int GetStartDowForMonth(int year, int month);
  14. DWORD DaysBetweenDates(const SYSTEMTIME *pstStart, const SYSTEMTIME *pstEnd);
  15. int DowFromDate(const SYSTEMTIME *pst);
  16. BOOL IsValidDate(const SYSTEMTIME *pst);
  17. BOOL IsValidTime(const SYSTEMTIME *pst);
  18. BOOL IsValidSystemtime(const SYSTEMTIME *pst);