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.

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