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.

444 lines
11 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: rpc.mc
  7. //
  8. // Contents: Errors for RPC facility. Some historical from 16 bit,
  9. // some new ones.
  10. //
  11. // History: dd-mmm-yy Author Comment
  12. // 20-Sep-93 AlexMit Created
  13. //
  14. // Notes:
  15. // .mc file is compiled by the MC tool to generate a .h file and
  16. // .rc (resource compiler script) file.
  17. //
  18. // Comments in .mc files start with a ";".
  19. // Comment lines are generated directly in the .h file, without
  20. // the leading ";"
  21. //
  22. // See mc.hlp for more help on .mc files and the MC tool.
  23. //
  24. //
  25. // Instructions for the transition to moleerror.mc:
  26. //
  27. //
  28. // Use this sample file as template for constructing .mc files for
  29. // your project.
  30. //
  31. // The project .mc files will be merged into a single .mc file for
  32. // Cairo: oleerror.mc
  33. //
  34. // Reserve a range of error codes within a FACILITY defined in
  35. // oleerror.mc. Reserve this range within oleerror.mc, by locating the
  36. // appropraite facility in oleerror.mc and placing a comment block
  37. // within oleerror.mc of the form:
  38. //
  39. //
  40. //--------------------------------------------------------------------------
  41. #ifndef _RPCFERR_H_
  42. #define _RPCFERR_H_
  43. // **** START OF COPIED DATA ****
  44. // The following information is copied from oleerror.mc.
  45. // It should not be merged into oleerror.mc
  46. // Define the status type.
  47. // Define the severities
  48. // Define the severities
  49. // Define the facilities
  50. //
  51. // FACILITY_RPC is for compatibilty with OLE2 and is not used
  52. // in later versions of OLE
  53. // **** END OF COPIED DATA ****
  54. //
  55. // Error definitions follow
  56. //
  57. // ******************
  58. // FACILITY_RPC
  59. // ******************
  60. //
  61. // Codes 0x0-0x11 are propogated from 16 bit OLE.
  62. //
  63. //
  64. // Values are 32 bit values layed out as follows:
  65. //
  66. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  67. // 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
  68. // +-+-+-+-+-+---------------------+-------------------------------+
  69. // |S|R|C|N|r| Facility | Code |
  70. // +-+-+-+-+-+---------------------+-------------------------------+
  71. //
  72. // where
  73. //
  74. // S - Severity - indicates success/fail
  75. //
  76. // 0 - Success
  77. // 1 - Fail (COERROR)
  78. //
  79. // R - reserved portion of the facility code, corresponds to NT's
  80. // second severity bit.
  81. //
  82. // C - reserved portion of the facility code, corresponds to NT's
  83. // C field.
  84. //
  85. // N - reserved portion of the facility code. Used to indicate a
  86. // mapped NT status value.
  87. //
  88. // r - reserved portion of the facility code. Reserved for internal
  89. // use. Used to indicate HRESULT values that are not status
  90. // values, but are instead message ids for display strings.
  91. //
  92. // Facility - is the facility code
  93. //
  94. // Code - is the facility's status code
  95. //
  96. //
  97. // Define the facility codes
  98. //
  99. #define FACILITY_WINDOWS 0x8
  100. #define FACILITY_WIN32 0x7
  101. #define FACILITY_STORAGE 0x3
  102. #define FACILITY_RPC 0x1
  103. #define FACILITY_NULL 0x0
  104. #define FACILITY_ITF 0x4
  105. #define FACILITY_DISPATCH 0x2
  106. //
  107. // Define the severity codes
  108. //
  109. #define STATUS_SEVERITY_SUCCESS 0x0
  110. #define STATUS_SEVERITY_COERROR 0x2
  111. //
  112. // MessageId: RPC_E_CALL_REJECTED
  113. //
  114. // MessageText:
  115. //
  116. // Call was rejected by callee.
  117. //
  118. #define RPC_E_CALL_REJECTED ((HRESULT)0x80010001L)
  119. //
  120. // MessageId: RPC_E_CALL_CANCELED
  121. //
  122. // MessageText:
  123. //
  124. // Call was canceld by call - returned by MessagePending.
  125. // This code only occurs if MessagePending return cancel.
  126. //
  127. #define RPC_E_CALL_CANCELED ((HRESULT)0x80010002L)
  128. //
  129. // MessageId: RPC_E_CANTPOST_INSENDCALL
  130. //
  131. // MessageText:
  132. //
  133. // The caller is dispatching an intertask SendMessage call and
  134. // can NOT call out via PostMessage.
  135. //
  136. #define RPC_E_CANTPOST_INSENDCALL ((HRESULT)0x80010003L)
  137. //
  138. // MessageId: RPC_E_CANTCALLOUT_INASYNCCALL
  139. //
  140. // MessageText:
  141. //
  142. // The caller is dispatching an asynchronus call can NOT
  143. // make an outgoing call on behalf of this call.
  144. //
  145. #define RPC_E_CANTCALLOUT_INASYNCCALL ((HRESULT)0x80010004L)
  146. //
  147. // MessageId: RPC_E_CANTCALLOUT_INEXTERNALCALL
  148. //
  149. // MessageText:
  150. //
  151. // The caller is not in a state where an outgoing call can be made.
  152. // This is the case if the caller has an outstanding call and
  153. // another incoming call was excepted by HIC; now the caller is
  154. // not allowed to call out again.
  155. //
  156. #define RPC_E_CANTCALLOUT_INEXTERNALCALL ((HRESULT)0x80010005L)
  157. //
  158. // MessageId: RPC_E_CONNECTION_TERMINATED
  159. //
  160. // MessageText:
  161. //
  162. // The connection terminated or is in a bogus state
  163. // and can not be used any more. Other connections
  164. // are still valid.
  165. //
  166. #define RPC_E_CONNECTION_TERMINATED ((HRESULT)0x80010006L)
  167. //
  168. // MessageId: RPC_E_SERVER_DIED
  169. //
  170. // MessageText:
  171. //
  172. // The callee (server [not server application]) is not available
  173. // and disappeared; all connections are invalid. The call may
  174. // have executed.
  175. //
  176. #define RPC_E_SERVER_DIED ((HRESULT)0x80010007L)
  177. //
  178. // MessageId: RPC_E_CLIENT_DIED
  179. //
  180. // MessageText:
  181. //
  182. // The caller (client ) disappeared while the callee (server) was
  183. // processing a call.
  184. //
  185. #define RPC_E_CLIENT_DIED ((HRESULT)0x80010008L)
  186. //
  187. // MessageId: RPC_E_INVALID_DATAPACKET
  188. //
  189. // MessageText:
  190. //
  191. // The date packet with the marshalled parameter data is incorrect.
  192. //
  193. #define RPC_E_INVALID_DATAPACKET ((HRESULT)0x80010009L)
  194. //
  195. // MessageId: RPC_E_CANTTRANSMIT_CALL
  196. //
  197. // MessageText:
  198. //
  199. // The call was not transmitted properly; the message queue
  200. // was full and was not emptied after yielding.
  201. //
  202. #define RPC_E_CANTTRANSMIT_CALL ((HRESULT)0x8001000AL)
  203. //
  204. // MessageId: RPC_E_CLIENT_CANTMARSHAL_DATA
  205. //
  206. // MessageText:
  207. //
  208. // The client (caller) can not marshall the parameter data - low memory etc.
  209. //
  210. #define RPC_E_CLIENT_CANTMARSHAL_DATA ((HRESULT)0x8001000BL)
  211. //
  212. // MessageId: RPC_E_CLIENT_CANTUNMARSHAL_DATA
  213. //
  214. // MessageText:
  215. //
  216. // The client (caller) can not unmarshall the return data - low memory etc.
  217. //
  218. #define RPC_E_CLIENT_CANTUNMARSHAL_DATA ((HRESULT)0x8001000CL)
  219. //
  220. // MessageId: RPC_E_SERVER_CANTMARSHAL_DATA
  221. //
  222. // MessageText:
  223. //
  224. // The server (callee) can not marshall the return data - low memory etc.
  225. //
  226. #define RPC_E_SERVER_CANTMARSHAL_DATA ((HRESULT)0x8001000DL)
  227. //
  228. // MessageId: RPC_E_SERVER_CANTUNMARSHAL_DATA
  229. //
  230. // MessageText:
  231. //
  232. // The server (callee) can not unmarshall the parameter data - low memory etc.
  233. //
  234. #define RPC_E_SERVER_CANTUNMARSHAL_DATA ((HRESULT)0x8001000EL)
  235. //
  236. // MessageId: RPC_E_INVALID_DATA
  237. //
  238. // MessageText:
  239. //
  240. // Received data are invalid; can be server or client data.
  241. //
  242. #define RPC_E_INVALID_DATA ((HRESULT)0x8001000FL)
  243. //
  244. // MessageId: RPC_E_INVALID_PARAMETER
  245. //
  246. // MessageText:
  247. //
  248. // A particular parameter is invalid and can not be un/marshalled.
  249. //
  250. #define RPC_E_INVALID_PARAMETER ((HRESULT)0x80010010L)
  251. //
  252. // MessageId: RPC_E_CANTCALLOUT_AGAIN
  253. //
  254. // MessageText:
  255. //
  256. // There is no second outgoing call on same channel in DDE conversation.
  257. //
  258. #define RPC_E_CANTCALLOUT_AGAIN ((HRESULT)0x80010011L)
  259. //
  260. // MessageId: RPC_E_SERVER_DIED_DNE
  261. //
  262. // MessageText:
  263. //
  264. // The callee (server [not server application]) is not available
  265. // and disappeared; all connections are invalid. The call did not execute.
  266. //
  267. #define RPC_E_SERVER_DIED_DNE ((HRESULT)0x80010012L)
  268. //
  269. // MessageId: RPC_E_SYS_CALL_FAILED
  270. //
  271. // MessageText:
  272. //
  273. // System call failed.
  274. //
  275. #define RPC_E_SYS_CALL_FAILED ((HRESULT)0x80010100L)
  276. //
  277. // MessageId: RPC_E_OUT_OF_RESOURCES
  278. //
  279. // MessageText:
  280. //
  281. // Could not allocate some required resource (memory, events, ...)
  282. //
  283. #define RPC_E_OUT_OF_RESOURCES ((HRESULT)0x80010101L)
  284. //
  285. // MessageId: RPC_E_ATTEMPTED_MULTITHREAD
  286. //
  287. // MessageText:
  288. //
  289. // Attempted to make calls on more then one thread in single threaded mode.
  290. //
  291. #define RPC_E_ATTEMPTED_MULTITHREAD ((HRESULT)0x80010102L)
  292. //
  293. // MessageId: RPC_E_NOT_REGISTERED
  294. //
  295. // MessageText:
  296. //
  297. // The requested interface is not registered on the server object.
  298. //
  299. #define RPC_E_NOT_REGISTERED ((HRESULT)0x80010103L)
  300. //
  301. // MessageId: RPC_E_FAULT
  302. //
  303. // MessageText:
  304. //
  305. // RPC could not call the server or could not return the results of calling the server.
  306. //
  307. #define RPC_E_FAULT ((HRESULT)0x80010104L)
  308. //
  309. // MessageId: RPC_E_SERVERFAULT
  310. //
  311. // MessageText:
  312. //
  313. // The server threw an exception.
  314. //
  315. #define RPC_E_SERVERFAULT ((HRESULT)0x80010105L)
  316. //
  317. // MessageId: RPC_E_CHANGED_MODE
  318. //
  319. // MessageText:
  320. //
  321. // Cannot change thread mode after it is set.
  322. //
  323. #define RPC_E_CHANGED_MODE ((HRESULT)0x80010106L)
  324. //
  325. // MessageId: RPC_E_INVALIDMETHOD
  326. //
  327. // MessageText:
  328. //
  329. // The method called does not exist on the server.
  330. //
  331. #define RPC_E_INVALIDMETHOD ((HRESULT)0x80010107L)
  332. //
  333. // MessageId: RPC_E_DISCONNECTED
  334. //
  335. // MessageText:
  336. //
  337. // The object invoked has disconnected from its clients.
  338. //
  339. #define RPC_E_DISCONNECTED ((HRESULT)0x80010108L)
  340. //
  341. // MessageId: RPC_E_RETRY
  342. //
  343. // MessageText:
  344. //
  345. // The object invoked choose not to process the call now. Try again later.
  346. //
  347. #define RPC_E_RETRY ((HRESULT)0x80010109L)
  348. //
  349. // MessageId: RPC_E_SERVERCALL_RETRYLATER
  350. //
  351. // MessageText:
  352. //
  353. // The messagefilter indicated that the app is bussy.
  354. //
  355. #define RPC_E_SERVERCALL_RETRYLATER ((HRESULT)0x8001010AL)
  356. //
  357. // MessageId: RPC_E_SERVERCALL_REJECTED
  358. //
  359. // MessageText:
  360. //
  361. // The messagefilter rejected the call.
  362. //
  363. #define RPC_E_SERVERCALL_REJECTED ((HRESULT)0x8001010BL)
  364. //
  365. // MessageId: RPC_E_INVALID_CALLDATA
  366. //
  367. // MessageText:
  368. //
  369. // The call control interfaces was called with invalid data.
  370. //
  371. #define RPC_E_INVALID_CALLDATA ((HRESULT)0x8001010CL)
  372. //
  373. // MessageId: RPC_E_CANTCALLOUT_ININPUTSYNCCALL
  374. //
  375. // MessageText:
  376. //
  377. // An outgoing call can not be made since the app is dispatching an input-sync call.
  378. //
  379. #define RPC_E_CANTCALLOUT_ININPUTSYNCCALL ((HRESULT)0x8001010DL)
  380. //
  381. // MessageId: RPC_E_WRONG_THREAD
  382. //
  383. // MessageText:
  384. //
  385. // The app called an interface that was marshalled for a different thread.
  386. //
  387. #define RPC_E_WRONG_THREAD ((HRESULT)0x8001010EL)
  388. //
  389. // MessageId: RPC_E_THREAD_NOT_INIT
  390. //
  391. // MessageText:
  392. //
  393. // The CoInitialize has not been called on the current thread.
  394. //
  395. #define RPC_E_THREAD_NOT_INIT ((HRESULT)0x8001010FL)
  396. //
  397. // MessageId: RPC_E_UNEXPECTED
  398. //
  399. // MessageText:
  400. //
  401. // An internal error occured.
  402. //
  403. #define RPC_E_UNEXPECTED ((HRESULT)0x8001FFFFL)
  404. #endif // _RPCFERR_H_