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

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