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.

152 lines
4.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: NWConst.hxx
  7. //
  8. // Contents: Constants used in ADs NetWare 3.X provdier
  9. //
  10. // History: Apr-26-96 t-ptam (Patrick Tam) Created.
  11. //
  12. //----------------------------------------------------------------------------
  13. //
  14. // OleDS object type ID.
  15. //
  16. #define NWCOMPAT_USER_ID 1
  17. #define NWCOMPAT_COMPUTER_ID 2
  18. #define NWCOMPAT_GROUP_ID 3
  19. #define NWCOMPAT_PRINTER_ID 4
  20. #define NWCOMPAT_SERVICE_ID 5
  21. #define NWCOMPAT_FILESHARE_ID 6
  22. #define NWCOMPAT_CLASS_ID 7
  23. #define NWCOMPAT_SYNTAX_ID 8
  24. #define NWCOMPAT_PROPERTY_ID 9
  25. //
  26. // ADs PropertyID array index.
  27. //
  28. #define COMP_WILD_CARD_ID 0
  29. #define COMP_ADDRESSES_ID 1
  30. #define COMP_OPERATINGSYSTEM_ID 2
  31. #define COMP_OPERATINGSYSTEMVERSION_ID 3
  32. #define USER_WILD_CARD_ID 0
  33. #define USER_FULLNAME_ID 1
  34. #define USER_ACCOUNTDISABLED_ID 101
  35. #define USER_ACCOUNTEXPIRATIONDATE_ID 102
  36. #define USER_CANACCOUNTEXPIRE_ID 103
  37. #define USER_GRACELOGINSALLOWED_ID 104
  38. #define USER_GRACELOGINSREMAINING_ID 105
  39. #define USER_ISACCOUNTLOCKED_ID 106
  40. #define USER_ISADMIN_ID 107
  41. #define USER_MAXLOGINS_ID 108
  42. #define USER_CANPASSWORDEXPIRE_ID 109
  43. #define USER_PASSWORDEXPIRATIONDATE_ID 110
  44. #define USER_PASSWORDMINIMUMLENGTH_ID 111
  45. #define USER_PASSWORDREQUIRED_ID 112
  46. #define USER_REQUIREUNIQUEPASSWORD_ID 113
  47. #define USER_LOGINHOURS_ID 114
  48. #define USER_BADLOGINADDRESS_ID 201
  49. #define USER_LASTLOGIN_ID 202
  50. #define GROUP_WILD_CARD_ID 0
  51. #define GROUP_DESCRIPTION_ID 1
  52. #define FSERV_WILD_CARD_ID 0
  53. #define FSERV_MAXUSERCOUNT_ID 1
  54. #define FSERV_HOSTCOMPUTER_ID 101
  55. #define FSHARE_WILD_CARD_ID 0
  56. #define FSHARE_DESCRIPTION_ID 1
  57. #define FSHARE_HOSTCOMPUTER_ID 2
  58. #define FSHARE_MAXUSERCOUNT_ID 3
  59. #define PRINTER_API_LEVEL 2
  60. #define JOB_API_LEVEL 2
  61. //
  62. // Size of stuff.
  63. //
  64. #define MAX_LONG_LENGTH 15
  65. #define NET_ADDRESS_WORD_SIZE 6
  66. #define NET_ADDRESS_NUM_CHAR 30
  67. #define OS_VERSION_NUM_CHAR 5
  68. //
  69. // Constants associated with reply segments.
  70. //
  71. #define REPLY_VALUE_SIZE 128
  72. #define MAX_DWORD_IN_REPLY REPLY_VALUE_SIZE/sizeof(DWORD)
  73. //
  74. // NetWare Default or constants.
  75. //
  76. #define DEFAULT_MIN_PSWD_LEN 5 // - Default minimum password length.
  77. #define REQUIRE_UNIQUE_PSWD 2 // - Value of byRestriction when unique
  78. // password is required.
  79. #define MAX_FULLNAME_LEN 127 // - Max length of Full Name (IDENITIFICATION).
  80. //
  81. // NetWare Bindery object property name.
  82. //
  83. #define NW_PROP_ACCOUNT_BALANCE "ACCOUNT_BALANCE"
  84. #define NW_PROP_EVERYONE "EVERYONE"
  85. #define NW_PROP_GROUP_MEMBERS "GROUP_MEMBERS"
  86. #define NW_PROP_USER_GROUPS "GROUPS_I'M_IN"
  87. #define NW_PROP_IDENTIFICATION "IDENTIFICATION"
  88. #define NW_PROP_LOGIN_CONTROL "LOGIN_CONTROL"
  89. #define NW_PROP_NET_ADDRESS "NET_ADDRESS"
  90. #define NW_PROP_Q_OPERATORS "Q_OPERATORS"
  91. #define NW_PROP_Q_USERS "Q_USERS"
  92. #define NW_PROP_SECURITY_EQUALS "SECURITY_EQUALS"
  93. #define NW_PROP_SUPERVISOR "SUPERVISOR"
  94. #define NW_PROP_SUPERVISORW L"SUPERVISOR"
  95. #define NW_PROP_USER_DEFAULTS "USER_DEFAULTS"
  96. #define NW_PRINTER_PATH "SYS:SYSTEM"
  97. //
  98. // Win32 API constants.
  99. //
  100. #define WIN32_API_LEVEL_1 1
  101. #define WIN32_API_LEVEL_2 2
  102. #define FIRST_PRINTJOB 0
  103. #define DATE_1980_JAN_1 33 // 0000000 0001 00001 -> DosDateTimeToVariantTime
  104. //
  105. // Misc.
  106. //
  107. #define MAX_ADS_PATH 80
  108. #define DISPID_REGULAR 1
  109. //
  110. // Error codes & associated constants for NWApiMapNtStatusToDosError.
  111. //
  112. #define NETWARE_GENERAL_ERROR 10000
  113. #define NETWARE_ERROR_BASE 10001
  114. #define NETWARE_PASSWORD_NOT_UNIQUE (NETWARE_ERROR_BASE+215)
  115. #define NETWARE_PASSWORD_TOO_SHORT (NETWARE_ERROR_BASE+216)
  116. #define NETWARE_ACCOUNT_DISABLED (NETWARE_ERROR_BASE+220)
  117. #define NETWARE_MEMBER_ALREADY_EXISTS (NETWARE_ERROR_BASE+233)
  118. #define NETWARE_NO_SUCH_MEMBER (NETWARE_ERROR_BASE+234)
  119. #define NETWARE_NO_SUCH_SEGMENT (NETWARE_ERROR_BASE+236)
  120. #define NETWARE_PROPERTY_ALREADY_EXISTS (NETWARE_ERROR_BASE+237)
  121. #define NETWARE_OBJECT_ALREADY_EXISTS (NETWARE_ERROR_BASE+238)
  122. #define NETWARE_INVALID_NAME (NETWARE_ERROR_BASE+239)
  123. #define NETWARE_WILD_CARD_NOT_ALLOWED (NETWARE_ERROR_BASE+240)
  124. #define NETWARE_NO_OBJECT_CREATE_PRIVILEGE (NETWARE_ERROR_BASE+245)
  125. #define NETWARE_NO_OBJECT_DELETE_PRIVILEGE (NETWARE_ERROR_BASE+246)
  126. #define NETWARE_NO_SUCH_PROPERTY (NETWARE_ERROR_BASE+251)
  127. #define NETWARE_NO_SUCH_OBJECT (NETWARE_ERROR_BASE+252)