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.

234 lines
5.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Copyright (C) Microsoft Corporation, 1991 - 1997.
  4. //
  5. // Contents: Scheduling Agent interface error definitions.
  6. //
  7. //--------------------------------------------------------------------------
  8. #ifndef _MSTERR_H_
  9. #define _MSTERR_H_
  10. // Define the status type.
  11. // Define the severities
  12. #ifdef FACILITY_ITF
  13. #undef FACILITY_ITF
  14. #endif
  15. //
  16. // Values are 32 bit values layed out as follows:
  17. //
  18. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  19. // 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
  20. // +---+-+-+-----------------------+-------------------------------+
  21. // |Sev|C|R| Facility | Code |
  22. // +---+-+-+-----------------------+-------------------------------+
  23. //
  24. // where
  25. //
  26. // Sev - is the severity code
  27. //
  28. // 00 - Success
  29. // 01 - Informational
  30. // 10 - Warning
  31. // 11 - Error
  32. //
  33. // C - is the Customer code flag
  34. //
  35. // R - is a reserved bit
  36. //
  37. // Facility - is the facility code
  38. //
  39. // Code - is the facility's status code
  40. //
  41. //
  42. // Define the facility codes
  43. //
  44. #define FACILITY_ITF 0x4
  45. //
  46. // Define the severity codes
  47. //
  48. #define STATUS_SEVERITY_SUCCESS 0x0
  49. #define STATUS_SEVERITY_COERROR 0x2
  50. //
  51. // MessageId: SCHED_S_TASK_READY
  52. //
  53. // MessageText:
  54. //
  55. // The task is ready to run at its next scheduled time.
  56. //
  57. #define SCHED_S_TASK_READY ((HRESULT)0x00041300L)
  58. //
  59. // MessageId: SCHED_S_TASK_RUNNING
  60. //
  61. // MessageText:
  62. //
  63. // The task is currently running.
  64. //
  65. #define SCHED_S_TASK_RUNNING ((HRESULT)0x00041301L)
  66. //
  67. // MessageId: SCHED_S_TASK_DISABLED
  68. //
  69. // MessageText:
  70. //
  71. // The task will not run at the scheduled times because it has been disabled.
  72. //
  73. #define SCHED_S_TASK_DISABLED ((HRESULT)0x00041302L)
  74. //
  75. // MessageId: SCHED_S_TASK_HAS_NOT_RUN
  76. //
  77. // MessageText:
  78. //
  79. // The task has not yet run.
  80. //
  81. #define SCHED_S_TASK_HAS_NOT_RUN ((HRESULT)0x00041303L)
  82. //
  83. // MessageId: SCHED_S_TASK_NO_MORE_RUNS
  84. //
  85. // MessageText:
  86. //
  87. // There are no more runs scheduled for this task.
  88. //
  89. #define SCHED_S_TASK_NO_MORE_RUNS ((HRESULT)0x00041304L)
  90. //
  91. // MessageId: SCHED_S_TASK_NOT_SCHEDULED
  92. //
  93. // MessageText:
  94. //
  95. // One or more of the properties that are needed to run this task on a schedule have not been set.
  96. //
  97. #define SCHED_S_TASK_NOT_SCHEDULED ((HRESULT)0x00041305L)
  98. //
  99. // MessageId: SCHED_S_TASK_TERMINATED
  100. //
  101. // MessageText:
  102. //
  103. // The last run of the task was terminated by the user.
  104. //
  105. #define SCHED_S_TASK_TERMINATED ((HRESULT)0x00041306L)
  106. //
  107. // MessageId: SCHED_S_TASK_NO_VALID_TRIGGERS
  108. //
  109. // MessageText:
  110. //
  111. // Either the task has no triggers or the existing triggers are disabled or not set.
  112. //
  113. #define SCHED_S_TASK_NO_VALID_TRIGGERS ((HRESULT)0x00041307L)
  114. //
  115. // MessageId: SCHED_S_EVENT_TRIGGER
  116. //
  117. // MessageText:
  118. //
  119. // Event triggers don't have set run times.
  120. //
  121. #define SCHED_S_EVENT_TRIGGER ((HRESULT)0x00041308L)
  122. //
  123. // MessageId: SCHED_E_TRIGGER_NOT_FOUND
  124. //
  125. // MessageText:
  126. //
  127. // Trigger not found.
  128. //
  129. #define SCHED_E_TRIGGER_NOT_FOUND ((HRESULT)0x80041309L)
  130. //
  131. // MessageId: SCHED_E_TASK_NOT_READY
  132. //
  133. // MessageText:
  134. //
  135. // One or more of the properties that are needed to run this task have not been set.
  136. //
  137. #define SCHED_E_TASK_NOT_READY ((HRESULT)0x8004130AL)
  138. //
  139. // MessageId: SCHED_E_TASK_NOT_RUNNING
  140. //
  141. // MessageText:
  142. //
  143. // There is no running instance of the task to terminate.
  144. //
  145. #define SCHED_E_TASK_NOT_RUNNING ((HRESULT)0x8004130BL)
  146. //
  147. // MessageId: SCHED_E_SERVICE_NOT_INSTALLED
  148. //
  149. // MessageText:
  150. //
  151. // The Task Scheduler Service is not installed on this computer.
  152. //
  153. #define SCHED_E_SERVICE_NOT_INSTALLED ((HRESULT)0x8004130CL)
  154. //
  155. // MessageId: SCHED_E_CANNOT_OPEN_TASK
  156. //
  157. // MessageText:
  158. //
  159. // The task object could not be opened.
  160. //
  161. #define SCHED_E_CANNOT_OPEN_TASK ((HRESULT)0x8004130DL)
  162. //
  163. // MessageId: SCHED_E_INVALID_TASK
  164. //
  165. // MessageText:
  166. //
  167. // The object is either an invalid task object or is not a task object.
  168. //
  169. #define SCHED_E_INVALID_TASK ((HRESULT)0x8004130EL)
  170. //
  171. // MessageId: SCHED_E_ACCOUNT_INFORMATION_NOT_SET
  172. //
  173. // MessageText:
  174. //
  175. // No account information could be found in the Task Scheduler security database for the task indicated.
  176. //
  177. #define SCHED_E_ACCOUNT_INFORMATION_NOT_SET ((HRESULT)0x8004130FL)
  178. //
  179. // MessageId: SCHED_E_ACCOUNT_NAME_NOT_FOUND
  180. //
  181. // MessageText:
  182. //
  183. // Unable to establish existence of the account specified.
  184. //
  185. #define SCHED_E_ACCOUNT_NAME_NOT_FOUND ((HRESULT)0x80041310L)
  186. //
  187. // MessageId: SCHED_E_ACCOUNT_DBASE_CORRUPT
  188. //
  189. // MessageText:
  190. //
  191. // Corruption was detected in the Task Scheduler security database; the database has been reset.
  192. //
  193. #define SCHED_E_ACCOUNT_DBASE_CORRUPT ((HRESULT)0x80041311L)
  194. //
  195. // MessageId: SCHED_E_NO_SECURITY_SERVICES
  196. //
  197. // MessageText:
  198. //
  199. // Task Scheduler security services are available only on Windows NT.
  200. //
  201. #define SCHED_E_NO_SECURITY_SERVICES ((HRESULT)0x80041312L)
  202. //
  203. // MessageId: SCHED_E_UNKNOWN_OBJECT_VERSION
  204. //
  205. // MessageText:
  206. //
  207. // The task object version is either unsupported or invalid.
  208. //
  209. #define SCHED_E_UNKNOWN_OBJECT_VERSION ((HRESULT)0x80041313L)
  210. #endif // _MSTERR_H_