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.

86 lines
2.8 KiB

  1. //-------------------------------------------------------------------
  2. //
  3. // FILE: config.hpp
  4. //
  5. // Summary;
  6. // This file contians the definitions of Primary Dialogs functions
  7. //
  8. // Entry Points;
  9. //
  10. // History;
  11. // Mar-01-95 ChandanS Created
  12. // Jan-30-96 JeffParh Lowered minimum replication interval
  13. // from 6 hours to 1 hour
  14. // Apr-17-96 JeffParh Moved variable definitions to config.cpp.
  15. //
  16. //-------------------------------------------------------------------
  17. #ifndef __CONFIG_HPP__
  18. #define __CONFIG_HPP__
  19. const int cchEDITLIMIT = 2; // the number of chars to repesent
  20. const DWORD INTERVAL_MIN = 1;
  21. const DWORD INTERVAL_MAX = 72;
  22. const DWORD INTERVAL_PAGE = 2;
  23. const DWORD HOUR_MIN_24 = 0;
  24. const DWORD HOUR_MAX_24 = 23;
  25. const DWORD HOUR_PAGE_24 = 2;
  26. const DWORD HOUR_MIN_12 = 1;
  27. const DWORD HOUR_MAX_12 = 12;
  28. const DWORD HOUR_PAGE_12 = 1;
  29. const DWORD MINUTE_MIN = 0;
  30. const DWORD MINUTE_MAX = 59;
  31. const DWORD MINUTE_PAGE = 4;
  32. const DWORD SECOND_MIN = 0;
  33. const DWORD SECOND_MAX = 59;
  34. const DWORD SECOND_PAGE = 4;
  35. const DWORD ATINIT = 1;
  36. const DWORD FORSERVER = 2;
  37. const DWORD FORTIME = 3;
  38. const UINT MB_VALUELIMIT = MB_OK; // beep when value limit is reached
  39. // Registry Keys
  40. const WCHAR LICENSE_SERVICE_REG_KEY[] = L"SYSTEM\\CurrentControlSet\\Services\\LicenseService";
  41. const WCHAR szLicenseKey[] = L"SYSTEM\\CurrentControlSet\\Services\\LicenseService\\Parameters";
  42. const WCHAR szUseEnterprise[] = L"UseEnterprise";
  43. const WCHAR szEnterpriseServer[] = L"EnterpriseServer";
  44. const WCHAR szReplicationType[] = L"ReplicationType";
  45. const WCHAR szReplicationTime[] = L"ReplicationTime";
  46. // set values under License Key
  47. //
  48. const DWORD dwUseEnterprise = 0;
  49. const DWORD dwReplicationType = 0;
  50. const DWORD dwReplicationTime = 24;
  51. const DWORD dwReplicationTimeInSec = 24 * 60 * 60;
  52. const DWORD dwInterval = 0;
  53. // Used for in memory storage of license mode state
  54. //
  55. typedef struct _ServiceParams
  56. {
  57. DWORD dwUseEnterprise;
  58. LPWSTR pszEnterpriseServer;
  59. DWORD dwReplicationType;
  60. DWORD dwReplicationTime;
  61. DWORD dwHour;
  62. DWORD dwMinute;
  63. DWORD dwSecond;
  64. BOOL fPM;
  65. } SERVICEPARAMS, *PSERVICEPARAMS;
  66. /* Suffix length + NULL terminator */
  67. #define TIMESUF_LEN 9
  68. typedef struct /* International section description */
  69. {
  70. int iTime; /* Time mode (0: 12 hour clock, 1: 24 ) */
  71. int iTLZero; /* Leading zeros for hour (0: no, 1: yes) */
  72. TCHAR sz1159[TIMESUF_LEN]; /* Trailing string from 0:00 to 11:59 */
  73. TCHAR sz2359[TIMESUF_LEN]; /* Trailing string from 12:00 to 23:59 */
  74. TCHAR szTime[4]; /* Time separator string */
  75. } INTLSTRUCT;
  76. #endif