home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / ADSERR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  5.9 KB  |  265 lines

  1. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  2. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  3.  
  4. Copyright (c) 1991  Microsoft Corporation
  5.  
  6. Module Name:
  7.  
  8.     oledserr.mc
  9.  
  10. Abstract:
  11.  
  12.     Error codes for ADs
  13.  
  14. Revision History:
  15.  
  16. --*/
  17.  
  18.  
  19. // ---------------------- HRESULT value definitions -----------------
  20. //
  21. // HRESULT definitions
  22. //
  23.  
  24. #ifdef RC_INVOKED
  25. #define _HRESULT_TYPEDEF_(_sc) _sc
  26. #else // RC_INVOKED
  27. #define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc)
  28. #endif // RC_INVOKED
  29.  
  30. //
  31. //  Values are 32 bit values layed out as follows:
  32. //
  33. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  34. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  35. //  +---+-+-+-----------------------+-------------------------------+
  36. //  |Sev|C|R|     Facility          |               Code            |
  37. //  +---+-+-+-----------------------+-------------------------------+
  38. //
  39. //  where
  40. //
  41. //      Sev - is the severity code
  42. //
  43. //          00 - Success
  44. //          01 - Informational
  45. //          10 - Warning
  46. //          11 - Error
  47. //
  48. //      C - is the Customer code flag
  49. //
  50. //      R - is a reserved bit
  51. //
  52. //      Facility - is the facility code
  53. //
  54. //      Code - is the facility's status code
  55. //
  56. //
  57. // Define the facility codes
  58. //
  59. #define FACILITY_WINDOWS                 8
  60. #define FACILITY_STORAGE                 3
  61. #define FACILITY_RPC                     1
  62. #define FACILITY_SSPI                    9
  63. #define FACILITY_WIN32                   7
  64. #define FACILITY_CONTROL                 10
  65. #define FACILITY_NULL                    0
  66. #define FACILITY_ITF                     4
  67. #define FACILITY_DISPATCH                2
  68.  
  69.  
  70. //
  71. // Define the severity codes
  72. //
  73.  
  74.  
  75. //
  76. // MessageId: E_ADS_BAD_PATHNAME
  77. //
  78. // MessageText:
  79. //
  80. //  An invalid Active Directory pathname was passed
  81. //
  82. #define E_ADS_BAD_PATHNAME               _HRESULT_TYPEDEF_(0x80005000L)
  83.  
  84. //
  85. // MessageId: E_ADS_INVALID_DOMAIN_OBJECT
  86. //
  87. // MessageText:
  88. //
  89. //  An unknown Active Directory domain object was requested
  90. //
  91. #define E_ADS_INVALID_DOMAIN_OBJECT      _HRESULT_TYPEDEF_(0x80005001L)
  92.  
  93. //
  94. // MessageId: E_ADS_INVALID_USER_OBJECT
  95. //
  96. // MessageText:
  97. //
  98. //  An unknown Active Directory user object was requested
  99. //
  100. #define E_ADS_INVALID_USER_OBJECT        _HRESULT_TYPEDEF_(0x80005002L)
  101.  
  102. //
  103. // MessageId: E_ADS_INVALID_COMPUTER_OBJECT
  104. //
  105. // MessageText:
  106. //
  107. //  An unknown Active Directory computer object was requested
  108. //
  109. #define E_ADS_INVALID_COMPUTER_OBJECT    _HRESULT_TYPEDEF_(0x80005003L)
  110.  
  111. //
  112. // MessageId: E_ADS_UNKNOWN_OBJECT
  113. //
  114. // MessageText:
  115. //
  116. //  An unknown Active Directory object was requested
  117. //
  118. #define E_ADS_UNKNOWN_OBJECT             _HRESULT_TYPEDEF_(0x80005004L)
  119.  
  120. //
  121. // MessageId: E_ADS_PROPERTY_NOT_SET
  122. //
  123. // MessageText:
  124. //
  125. //  The specified Active Directory property was not set
  126. //
  127. #define E_ADS_PROPERTY_NOT_SET           _HRESULT_TYPEDEF_(0x80005005L)
  128.  
  129. //
  130. // MessageId: E_ADS_PROPERTY_NOT_SUPPORTED
  131. //
  132. // MessageText:
  133. //
  134. //  The specified Active Directory property is not supported
  135. //
  136. #define E_ADS_PROPERTY_NOT_SUPPORTED     _HRESULT_TYPEDEF_(0x80005006L)
  137.  
  138. //
  139. // MessageId: E_ADS_PROPERTY_INVALID
  140. //
  141. // MessageText:
  142. //
  143. //  The specified Active Directory property is invalid
  144. //
  145. #define E_ADS_PROPERTY_INVALID           _HRESULT_TYPEDEF_(0x80005007L)
  146.  
  147. //
  148. // MessageId: E_ADS_BAD_PARAMETER
  149. //
  150. // MessageText:
  151. //
  152. //  One or more input parameters are invalid
  153. //
  154. #define E_ADS_BAD_PARAMETER              _HRESULT_TYPEDEF_(0x80005008L)
  155.  
  156. //
  157. // MessageId: E_ADS_OBJECT_UNBOUND
  158. //
  159. // MessageText:
  160. //
  161. //  The specified Active Directory object is not bound to a remote resource
  162. //
  163. #define E_ADS_OBJECT_UNBOUND             _HRESULT_TYPEDEF_(0x80005009L)
  164.  
  165. //
  166. // MessageId: E_ADS_PROPERTY_NOT_MODIFIED
  167. //
  168. // MessageText:
  169. //
  170. //  The specified Active Directory object has not been modified
  171. //
  172. #define E_ADS_PROPERTY_NOT_MODIFIED      _HRESULT_TYPEDEF_(0x8000500AL)
  173.  
  174. //
  175. // MessageId: E_ADS_PROPERTY_MODIFIED
  176. //
  177. // MessageText:
  178. //
  179. //  The specified Active Directory object has not been modified
  180. //
  181. #define E_ADS_PROPERTY_MODIFIED          _HRESULT_TYPEDEF_(0x8000500BL)
  182.  
  183. //
  184. // MessageId: E_ADS_CANT_CONVERT_DATATYPE
  185. //
  186. // MessageText:
  187. //
  188. //  The Active Directory datatype cannot be converted to/from a native DS datatype
  189. //
  190. #define E_ADS_CANT_CONVERT_DATATYPE      _HRESULT_TYPEDEF_(0x8000500CL)
  191.  
  192. //
  193. // MessageId: E_ADS_PROPERTY_NOT_FOUND
  194. //
  195. // MessageText:
  196. //
  197. //  The Active Directory property cannot be found in the cache.
  198. //
  199. #define E_ADS_PROPERTY_NOT_FOUND         _HRESULT_TYPEDEF_(0x8000500DL)
  200.  
  201. //
  202. // MessageId: E_ADS_OBJECT_EXISTS
  203. //
  204. // MessageText:
  205. //
  206. //  The Active Directory object exists.
  207. //
  208. #define E_ADS_OBJECT_EXISTS              _HRESULT_TYPEDEF_(0x8000500EL)
  209.  
  210. //
  211. // MessageId: E_ADS_SCHEMA_VIOLATION
  212. //
  213. // MessageText:
  214. //
  215. //  The attempted action violates the DS schema rules.
  216. //
  217. #define E_ADS_SCHEMA_VIOLATION           _HRESULT_TYPEDEF_(0x8000500FL)
  218.  
  219. //
  220. // MessageId: E_ADS_COLUMN_NOT_SET
  221. //
  222. // MessageText:
  223. //
  224. //  The specified column in the Active Directory was not set.
  225. //
  226. #define E_ADS_COLUMN_NOT_SET             _HRESULT_TYPEDEF_(0x80005010L)
  227.  
  228. //
  229. // MessageId: S_ADS_ERRORSOCCURRED
  230. //
  231. // MessageText:
  232. //
  233. //  One or more errors occurred
  234. //
  235. #define S_ADS_ERRORSOCCURRED             _HRESULT_TYPEDEF_(0x00005011L)
  236.  
  237. //
  238. // MessageId: S_ADS_NOMORE_ROWS
  239. //
  240. // MessageText:
  241. //
  242. //  No more rows to be obatained by the search result.
  243. //
  244. #define S_ADS_NOMORE_ROWS                _HRESULT_TYPEDEF_(0x00005012L)
  245.  
  246. //
  247. // MessageId: S_ADS_NOMORE_COLUMNS
  248. //
  249. // MessageText:
  250. //
  251. //  No more columns to be obatained for the current row.
  252. //
  253. #define S_ADS_NOMORE_COLUMNS             _HRESULT_TYPEDEF_(0x00005013L)
  254.  
  255. //
  256. // MessageId: E_ADS_INVALID_FILTER
  257. //
  258. // MessageText:
  259. //
  260. //  The search filter specified is invalid
  261. //
  262. #define E_ADS_INVALID_FILTER             _HRESULT_TYPEDEF_(0x80005014L)
  263.  
  264. #pragma option pop /*P_O_Pop*/
  265.