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.

135 lines
5.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : FaxUIConstants.h //
  3. // //
  4. // DESCRIPTION : Fax UI Constants. //
  5. // //
  6. // AUTHOR : yossg //
  7. // //
  8. // HISTORY : //
  9. // Oct 28 1999 yossg create //
  10. // //
  11. // Copyright (C) 1999 Microsoft Corporation All Rights Reserved //
  12. /////////////////////////////////////////////////////////////////////////////
  13. #ifndef _FXS_CONST_H_
  14. #define _FXS_CONST_H_
  15. #include <lmcons.h>
  16. #define FXS_RETRIES_DEFAULT 2
  17. #define FXS_RETRIES_LOWER 0
  18. #define FXS_RETRIES_UPPER 99
  19. #define FXS_RETRIES_LENGTH 2 //num of digits of FXS_RETRIES_UPPER
  20. #define FXS_RETRYDELAY_DEFAULT 10
  21. #define FXS_RETRYDELAY_LOWER 0
  22. #define FXS_RETRYDELAY_UPPER 999
  23. #define FXS_RETRYDELAY_LENGTH 3 //num of digits of FXS_RETRYDELAY_UPPER
  24. // FXS_DIRTYDAYS_LOWER
  25. // is actually must have FXS_DIRTYDAYS_ZERO equls zero
  26. // for UI implementation reasons
  27. // Do not change FXS_DIRTYDAYS_LOWER current value!
  28. #define FXS_DIRTYDAYS_ZERO 0
  29. #define FXS_DIRTYDAYS_DEFAULT 30
  30. #define FXS_DIRTYDAYS_LOWER 1
  31. #define FXS_DIRTYDAYS_UPPER 99
  32. #define FXS_DIRTYDAYS_LENGTH 2 //num of digits of FXS_DIRTYDAYS_UPPER
  33. #define FXS_QUOTA_HIGH_DEFAULT 50
  34. #define FXS_QUOTA_HIGH_LOWER 1
  35. #define FXS_QUOTA_HIGH_UPPER 999
  36. #define FXS_QUOTA_LENGTH 3 //num of digits of FXS_RINGS_UPPER
  37. #define FXS_QUOTA_LOW_DEFAULT 48
  38. #define FXS_QUOTA_LOW_LOWER 0
  39. #define FXS_QUOTA_LOW_UPPER 998
  40. #define FXS_RINGS_DEFAULT 3
  41. #define FXS_RINGS_LOWER 0
  42. #define FXS_RINGS_UPPER 99
  43. #define FXS_RINGS_LENGTH 2 //num of digits of FXS_RINGS_UPPER
  44. #define FXS_DWORD_LEN 10
  45. //Do not change
  46. #define FXS_MAX_RINGS_LEN FXS_DWORD_LEN //to be safe
  47. #define FXS_MAX_NUM_OF_DEVICES_LEN FXS_DWORD_LEN //to be safe
  48. #define FXS_MAX_CODE_LEN FXS_DWORD_LEN //to be safe
  49. #define FXS_MAX_AREACODE_LEN FXS_DWORD_LEN
  50. #define FXS_MAX_COUNTRYCODE_LEN FXS_DWORD_LEN
  51. #define FXS_MAX_COUNTRYNAME_LEN 256
  52. #define FXS_MAX_LOG_REPORT_LEVEL 4
  53. //for Node's Display Name
  54. #define FXS_MAX_DISPLAY_NAME_LEN MAX_FAX_STRING_LEN
  55. //Used in browse dialog, page error msg etc.
  56. #define FXS_MAX_TITLE_LEN 128
  57. #define FXS_MAX_MESSAGE_LEN 1024
  58. #define FXS_MAX_ERROR_MSG_LEN 512
  59. #define FXS_MAX_GENERAL_BUF_LEN 200
  60. #define FXS_THIN_COLUMN_WIDTH 30
  61. #define FXS_NORMAL_COLUMN_WIDTH 120
  62. #define FXS_WIDE_COLUMN_WIDTH 180
  63. #define FXS_LARGE_COLUMN_WIDTH 200
  64. #define FXS_IDS_STATUS_ERROR 999
  65. #define FXS_FIRST_DEVICE_ORDER 1
  66. #define FXS_FIRST_METHOD_PRIORITY 1
  67. #define NUL 0
  68. #define EQUAL_STRING 0
  69. #define FXS_ITEMS_NEVER_COUNTED -1
  70. //constants from lmcons.h (without the final null)
  71. #define FXS_MAX_PASSWORD_LENGTH PWLEN //256
  72. #define FXS_MAX_USERNAME_LENGTH UNLEN //256
  73. #define FXS_MAX_DOMAIN_LENGTH DNLEN //15
  74. //#define FXS_MAX_SERVERNAME_LENGTH CNLEN //15 == MAX_COMPUTERNAME_LENGTH
  75. #define FXS_MAX_EMAIL_ADDRESS 128
  76. #define FXS_MAX_PORT_NUM 0xffff //MAX_LONG
  77. #define FXS_MIN_PORT_NUM 0
  78. #define FXS_MAX_PORT_NUM_LEN 5
  79. #define FXS_TSID_CSID_MAX_LENGTH 20
  80. #define FXS_GLOBAL_METHOD_DEVICE_ID 0
  81. //temp
  82. #define FXS_ADMIN_HLP_FILE L"FxsAdmin.hlp"
  83. #define MAX_USERINFO_FULLNAME 128
  84. #define MAX_USERINFO_FAX_NUMBER 64
  85. #define MAX_USERINFO_COMPANY 128
  86. #define MAX_USERINFO_ADDRESS 256
  87. #define MAX_USERINFO_TITLE 64
  88. #define MAX_USERINFO_DEPT 64
  89. #define MAX_USERINFO_OFFICE 64
  90. #define MAX_USERINFO_HOME_PHONE 64
  91. #define MAX_USERINFO_WORK_PHONE 64
  92. #define MAX_USERINFO_BILLING_CODE 64
  93. #define MAX_USERINFO_MAILBOX 64
  94. #define MAX_USERINFO_STREET 256
  95. #define MAX_USERINFO_CITY 256
  96. #define MAX_USERINFO_STATE 64
  97. #define MAX_USERINFO_ZIP_CODE 64
  98. #define MAX_USERINFO_COUNTRY 256
  99. #define MAX_FAX_STRING_LEN MAX_PATH - 2
  100. //
  101. // FSPI versions
  102. //
  103. typedef enum
  104. {
  105. FSPI_API_VERSION_1 = 0x00010000 // Used by FSPs
  106. } FSPI_API_VERSIONS; // Used in FaxRegisterServiceProviderEx
  107. #endif // _FXS_CONST_H_