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.

49 lines
2.1 KiB

  1. // job.h
  2. //
  3. // This header file collects up all the HSM Job and related objects
  4. // and common function definitions. The COM objects are available in
  5. // RSJOB.DLL, and the functions in RSJOB.LIB.
  6. // A definition for 1% and 100% as used by the job policies scale.
  7. #define HSM_JOBSCALE_1 0x0010
  8. #define HSM_JOBSCALE_100 0x0640
  9. // Error codes
  10. #include "wsb.h"
  11. // COM Interface & LibraryDefintions
  12. #include "jobdef.h"
  13. #include "jobint.h"
  14. #include "joblib.h"
  15. // Common Functions
  16. // Defines for groups of job states.
  17. #define HSM_JOB_STATE_IS_ACTIVE(state) ((HSM_JOB_STATE_ACTIVE == state) || \
  18. (HSM_JOB_STATE_CANCELLING == state) || \
  19. (HSM_JOB_STATE_PAUSING == state) || \
  20. (HSM_JOB_STATE_RESUMING == state) || \
  21. (HSM_JOB_STATE_STARTING == state) || \
  22. (HSM_JOB_STATE_SUSPENDING == state))
  23. #define HSM_JOB_STATE_IS_DONE(state) ((HSM_JOB_STATE_DONE == state) || \
  24. (HSM_JOB_STATE_CANCELLED == state) || \
  25. (HSM_JOB_STATE_FAILED == state) || \
  26. (HSM_JOB_STATE_SKIPPED == state) || \
  27. (HSM_JOB_STATE_SUSPENDED == state))
  28. #define HSM_JOB_STATE_IS_PAUSED(state) (HSM_JOB_STATE_PAUSED == state)
  29. // This bits tell the session when to log events.
  30. #define HSM_JOB_LOG_EVENT 0x00000001
  31. #define HSM_JOB_LOG_ITEMMOSTFAIL 0x00000002
  32. #define HSM_JOB_LOG_ITEMALLFAIL 0x00000004
  33. #define HSM_JOB_LOG_ITEMALL 0x00000008
  34. #define HSM_JOB_LOG_HR 0x00000010
  35. #define HSM_JOB_LOG_MEDIASTATE 0x00000020
  36. #define HSM_JOB_LOG_PRIORITY 0x00000040
  37. #define HSM_JOB_LOG_STATE 0x00000080
  38. #define HSM_JOB_LOG_STRING 0x00000100
  39. #define HSM_JOB_LOG_NONE 0x0
  40. #define HSM_JOB_LOG_NORMAL HSM_JOB_LOG_ITEMMOSTFAIL | HSM_JOB_LOG_HR | HSM_JOB_LOG_STATE