home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / adserr.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  6KB  |  263 lines

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