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.

46 lines
1.7 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. timeofday.h
  7. Definition of timeofday convenient functions
  8. FILE HISTORY:
  9. */
  10. #ifndef ___TIME_OF_DAY_H__
  11. #define ___TIME_OF_DAY_H__
  12. #define LOGHOURSDLL _T("loghours.dll")
  13. #define DIALINHOURSEXAPI "DialinHoursDialogEx"
  14. ///////////////////////////////////////////////////////////////////////////////
  15. // Flags for LogonScheduleDialogEx and DialinHoursDialogEx
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // The input data is in GMT
  18. #define SCHED_FLAG_INPUT_GMT 0x00000000 // default
  19. // The input data is in local time.
  20. #define SCHED_FLAG_INPUT_LOCAL_TIME 0x00000001
  21. // hour map is an array of bit, each bit maps to a hour
  22. // total 1 week(7 days), 7 * 24 = 21 BYTES
  23. void ReverseHourMap(BYTE *map, int nByte);
  24. void ShiftHourMap(BYTE *map, int nByte, int nShiftByte);
  25. HRESULT OpenTimeOfDayDlgEx(
  26. HWND hwndParent, // parent window
  27. BYTE ** pprgbData, // pointer to pointer to array of 21 bytes
  28. LPCTSTR pszTitle, // dialog title
  29. DWORD dwFlags
  30. );
  31. typedef HRESULT (APIENTRY *PFN_LOGONSCHEDULEDIALOGEX)(
  32. HWND hwndParent, // parent window
  33. BYTE ** pprgbData, // pointer to pointer to array of 21 bytes
  34. LPCTSTR pszTitle, // dialog title
  35. DWORD dwFlags
  36. );
  37. #endif //