home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / adserr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  6.0 KB  |  269 lines

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