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.

147 lines
4.3 KiB

  1. /****************************************************************************************
  2. * NAME: DBSQLDEF.H
  3. * MODULE: DBSQLLIB/DBSQLDLL
  4. * AUTHOR: keithbi
  5. *
  6. * HISTORY
  7. * 12/22/95 keithbi Created
  8. * 05/07/96 DanielLi Added account status and types
  9. *
  10. * OVERVIEW
  11. *
  12. *
  13. ****************************************************************************************/
  14. #ifndef DBSQLDEF_H
  15. #define DBSQLDEF_H
  16. /*
  17. #define DBNTWIN32
  18. #pragma warning (disable:4121)
  19. #include <sqlfront.h>
  20. #pragma warning (default:4121)
  21. #include <sqldb.h>
  22. */
  23. // errors
  24. #define AC_SUCCESS 0
  25. #define AC_VALID_ACCOUNT 0
  26. #define AC_DB_FAILED 1
  27. #define AC_ACCOUNT_NOT_FOUND 2
  28. #define AC_INVALID_PASSWORD 3
  29. #define AC_BAD_PARAM 4
  30. #define AC_SEM_FAILED 5
  31. #define AC_CONNECT_FAILED 6
  32. #define AC_MUTEX_FAILED 7
  33. #define AC_MISSING_DATA 8
  34. #define AC_ILLEGAL_PASSWORD 9
  35. #define AC_INVALID_ACCOUNT 10
  36. #define AC_NOMORE_CONNECTIONS 11
  37. #define AC_NEW_ACCOUNT 12
  38. #define AC_LOCKED_ACCOUNT 13
  39. #define AC_ILLEGAL_NAME 14
  40. #define AC_OUT_OF_MEMORY 15
  41. #define AC_TOO_MANY_ROWS 16
  42. #define AC_BANNED_PERSON 17
  43. #define AC_GROUP_NOT_FOUND 18
  44. #define AC_UPDATE_FAILED 19
  45. #define AC_DELETE_FAILED 20
  46. #define AC_TOKEN_NOT_FOUND 21
  47. #define AC_ALREADY_CONNECTED 22
  48. #define AC_ACCESS_DENIED 23
  49. #define AC_OWNER_NOT_FOUND 24
  50. #define AC_OWNER_UPDATE_FAILED 25
  51. #define AC_ILLEGAL_LOGIN_NAME 26
  52. #define AC_ILLEGAL_PASSWORD_SIMILAR 27
  53. #define AC_ILLEGAL_PASSWORD_CHARS 28
  54. #define AC_DUPLICATE_LOGIN_NAME 29
  55. #define AC_INVALID_SUB_PLAN 30
  56. #define AC_INVALID_PAYMENT_METHOD 31
  57. #define AC_DUPLICATE_ENTRY 32
  58. #define AC_TIMED_OUT 33
  59. #define AC_THROTTLED 34
  60. #define AC_OLDSYSTEM 35
  61. #define AC_SBS 36
  62. #define AC_NO_FREE_TRIAL_PERIOD 37
  63. #define AC_CANCELLED 38
  64. #define AC_RESUBMIT 39
  65. #define AC_NOT_FOUND 40
  66. #define AC_CYCLIC_DISTLIST 41
  67. #define AC_BP_DEFEND_ERROR 42
  68. #define AC_NO_MORE_RESULTS 43
  69. #define AC_NO_MORE_ROWS 44
  70. #define AC_INVALID_DOMAIN_NAME 45
  71. #define AC_NAME_NOT_UNIQUE 46
  72. #define AC_BAD_HANDLE 0xFFFFFFFF
  73. // database types (used by ServerMap)
  74. #define DT_CLIENT 1
  75. #define DT_LOGINQUERY 2
  76. #define DT_ADDRESSBOOKQUERY 3
  77. /*
  78. #define DT_SECURITYMASTER 4
  79. */
  80. #define DT_CSQUERY 5
  81. #define DT_ACCTMASTER 6
  82. #define DT_ACCTQUERY 7
  83. /*
  84. #define DT_SECURITYQUERY 8
  85. */
  86. #define DT_ADDRESSBOOKMASTER 9
  87. #define DT_ONLSTMT 10
  88. #define DT_CSWISSUE 12
  89. #define typeConfLoc 13
  90. #define DT_GUESTLISTMASTER 14
  91. #define DT_ADDRBOOK20QUERY 15
  92. #define DT_ADDRBOOK20MASTER 16
  93. #define DT_LOCATORMASTER 17
  94. #define DT_LOCATORQUERY 18
  95. #define DT_EFORM 255
  96. #define ACCTDB_APPID 1
  97. // database states
  98. #define DS_ACTIVE_NOT_IN_USE 0
  99. #define DS_ACTIVE 1
  100. #define DS_DRAINING 2
  101. #define DS_INACTIVE 3
  102. //
  103. // account types
  104. //
  105. #define AC_ENDUSER 1
  106. #define AC_CORPORATE 2
  107. #define AC_IP 3
  108. #define AC_SICILY_ICP 4
  109. #define AC_PROXY 5
  110. #define AC_INTERNET 8
  111. //
  112. // account status values
  113. //
  114. #define AS_NEW 1
  115. #define AS_CURRENT 2
  116. #define AS_EXPIRED 3
  117. #define AS_LOCKED 4
  118. //
  119. // defs for security tables
  120. //
  121. #define AC_MAX_LOGIN_NAME_LENGTH 64
  122. #define AC_MIN_LOGIN_NAME_LENGTH 1
  123. #define AC_MAX_DOMAIN_NAME_LENGTH 64
  124. #define AC_MIN_DOMAIN_NAME_LENGTH 1
  125. #define AC_MAX_FIRST_NAME_LENGTH 45
  126. #define AC_MAX_LAST_NAME_LENGTH 45
  127. #define AC_MAX_GROUP_NAME_LENGTH 64
  128. #define AC_MAX_TOKEN_NAME_LENGTH 20
  129. #define AC_MAX_TOKEN_DESC_LENGTH 64
  130. #define AC_MAX_PASSWORD_LENGTH 16
  131. #define AC_MIN_PASSWORD_LENGTH 1
  132. #endif // DBSQLDEF_H