home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / msterr.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  6KB  |  235 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. #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.  
  47. //
  48. // Define the severity codes
  49. //
  50. #define STATUS_SEVERITY_SUCCESS          0x0
  51. #define STATUS_SEVERITY_COERROR          0x2
  52.  
  53.  
  54. //
  55. // MessageId: SCHED_S_TASK_READY
  56. //
  57. // MessageText:
  58. //
  59. //  The task is ready to run at its next scheduled time.
  60. //
  61. #define SCHED_S_TASK_READY               ((HRESULT)0x00041300L)
  62.  
  63. //
  64. // MessageId: SCHED_S_TASK_RUNNING
  65. //
  66. // MessageText:
  67. //
  68. //  The task is currently running.
  69. //
  70. #define SCHED_S_TASK_RUNNING             ((HRESULT)0x00041301L)
  71.  
  72. //
  73. // MessageId: SCHED_S_TASK_DISABLED
  74. //
  75. // MessageText:
  76. //
  77. //  The task will not run at the scheduled times because it has been disabled.
  78. //
  79. #define SCHED_S_TASK_DISABLED            ((HRESULT)0x00041302L)
  80.  
  81. //
  82. // MessageId: SCHED_S_TASK_HAS_NOT_RUN
  83. //
  84. // MessageText:
  85. //
  86. //  The task has not yet run.
  87. //
  88. #define SCHED_S_TASK_HAS_NOT_RUN         ((HRESULT)0x00041303L)
  89.  
  90. //
  91. // MessageId: SCHED_S_TASK_NO_MORE_RUNS
  92. //
  93. // MessageText:
  94. //
  95. //  There are no more runs scheduled for this task.
  96. //
  97. #define SCHED_S_TASK_NO_MORE_RUNS        ((HRESULT)0x00041304L)
  98.  
  99. //
  100. // MessageId: SCHED_S_TASK_NOT_SCHEDULED
  101. //
  102. // MessageText:
  103. //
  104. //  One or more of the properties that are needed to run this task on a schedule have not been set.
  105. //
  106. #define SCHED_S_TASK_NOT_SCHEDULED       ((HRESULT)0x00041305L)
  107.  
  108. //
  109. // MessageId: SCHED_S_TASK_TERMINATED
  110. //
  111. // MessageText:
  112. //
  113. //  The last run of the task was terminated by the user.
  114. //
  115. #define SCHED_S_TASK_TERMINATED          ((HRESULT)0x00041306L)
  116.  
  117. //
  118. // MessageId: SCHED_S_TASK_NO_VALID_TRIGGERS
  119. //
  120. // MessageText:
  121. //
  122. //  Either the task has no triggers or the existing triggers are disabled or not set.
  123. //
  124. #define SCHED_S_TASK_NO_VALID_TRIGGERS   ((HRESULT)0x00041307L)
  125.  
  126. //
  127. // MessageId: SCHED_S_EVENT_TRIGGER
  128. //
  129. // MessageText:
  130. //
  131. //  Event triggers don't have set run times.
  132. //
  133. #define SCHED_S_EVENT_TRIGGER            ((HRESULT)0x00041308L)
  134.  
  135. //
  136. // MessageId: SCHED_E_TRIGGER_NOT_FOUND
  137. //
  138. // MessageText:
  139. //
  140. //  Trigger not found.
  141. //
  142. #define SCHED_E_TRIGGER_NOT_FOUND        ((HRESULT)0x80041309L)
  143.  
  144. //
  145. // MessageId: SCHED_E_TASK_NOT_READY
  146. //
  147. // MessageText:
  148. //
  149. //  One or more of the properties that are needed to run this task have not been set.
  150. //
  151. #define SCHED_E_TASK_NOT_READY           ((HRESULT)0x8004130AL)
  152.  
  153. //
  154. // MessageId: SCHED_E_TASK_NOT_RUNNING
  155. //
  156. // MessageText:
  157. //
  158. //  There is no running instance of the task to terminate.
  159. //
  160. #define SCHED_E_TASK_NOT_RUNNING         ((HRESULT)0x8004130BL)
  161.  
  162. //
  163. // MessageId: SCHED_E_SERVICE_NOT_INSTALLED
  164. //
  165. // MessageText:
  166. //
  167. //  The Task Scheduler Service is not installed on this computer.
  168. //
  169. #define SCHED_E_SERVICE_NOT_INSTALLED    ((HRESULT)0x8004130CL)
  170.  
  171. //
  172. // MessageId: SCHED_E_CANNOT_OPEN_TASK
  173. //
  174. // MessageText:
  175. //
  176. //  The task object could not be opened.
  177. //
  178. #define SCHED_E_CANNOT_OPEN_TASK         ((HRESULT)0x8004130DL)
  179.  
  180. //
  181. // MessageId: SCHED_E_INVALID_TASK
  182. //
  183. // MessageText:
  184. //
  185. //  The object is either an invalid task object or is not a task object.
  186. //
  187. #define SCHED_E_INVALID_TASK             ((HRESULT)0x8004130EL)
  188.  
  189. //
  190. // MessageId: SCHED_E_ACCOUNT_INFORMATION_NOT_SET
  191. //
  192. // MessageText:
  193. //
  194. //  No account information could be found in the Task Scheduler security database for the task indicated.
  195. //
  196. #define SCHED_E_ACCOUNT_INFORMATION_NOT_SET ((HRESULT)0x8004130FL)
  197.  
  198. //
  199. // MessageId: SCHED_E_ACCOUNT_NAME_NOT_FOUND
  200. //
  201. // MessageText:
  202. //
  203. //  Unable to establish existence of the account specified.
  204. //
  205. #define SCHED_E_ACCOUNT_NAME_NOT_FOUND   ((HRESULT)0x80041310L)
  206.  
  207. //
  208. // MessageId: SCHED_E_ACCOUNT_DBASE_CORRUPT
  209. //
  210. // MessageText:
  211. //
  212. //  Corruption was detected in the Task Scheduler security database; the database has been reset.
  213. //
  214. #define SCHED_E_ACCOUNT_DBASE_CORRUPT    ((HRESULT)0x80041311L)
  215.  
  216. //
  217. // MessageId: SCHED_E_NO_SECURITY_SERVICES
  218. //
  219. // MessageText:
  220. //
  221. //  Task Scheduler security services are available only on Windows NT.
  222. //
  223. #define SCHED_E_NO_SECURITY_SERVICES     ((HRESULT)0x80041312L)
  224.  
  225. //
  226. // MessageId: SCHED_E_UNKNOWN_OBJECT_VERSION
  227. //
  228. // MessageText:
  229. //
  230. //  The task object version is either unsupported or invalid.
  231. //
  232. #define SCHED_E_UNKNOWN_OBJECT_VERSION   ((HRESULT)0x80041313L)
  233.  
  234. #endif // _MSTERR_H_
  235.