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.

108 lines
3.6 KiB

  1. //+---------------------------------------------------------------------------
  2. // Copyright (C) 1996-1999, Microsoft Corporation.
  3. //
  4. // File: status.h
  5. //
  6. // Contents: Status Codes for ADS objects
  7. //
  8. //----------------------------------------------------------------------------
  9. //
  10. // printer status values
  11. //
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif
  18. #define ADS_PRINTER_PAUSED 0x00000001
  19. #define ADS_PRINTER_PENDING_DELETION 0x00000002
  20. #define ADS_PRINTER_ERROR 0x00000003
  21. #define ADS_PRINTER_PAPER_JAM 0x00000004
  22. #define ADS_PRINTER_PAPER_OUT 0x00000005
  23. #define ADS_PRINTER_MANUAL_FEED 0x00000006
  24. #define ADS_PRINTER_PAPER_PROBLEM 0x00000007
  25. #define ADS_PRINTER_OFFLINE 0x00000008
  26. #define ADS_PRINTER_IO_ACTIVE 0x00000100
  27. #define ADS_PRINTER_BUSY 0x00000200
  28. #define ADS_PRINTER_PRINTING 0x00000400
  29. #define ADS_PRINTER_OUTPUT_BIN_FULL 0x00000800
  30. #define ADS_PRINTER_NOT_AVAILABLE 0x00001000
  31. #define ADS_PRINTER_WAITING 0x00002000
  32. #define ADS_PRINTER_PROCESSING 0x00004000
  33. #define ADS_PRINTER_INITIALIZING 0x00008000
  34. #define ADS_PRINTER_WARMING_UP 0x00010000
  35. #define ADS_PRINTER_TONER_LOW 0x00020000
  36. #define ADS_PRINTER_NO_TONER 0x00040000
  37. #define ADS_PRINTER_PAGE_PUNT 0x00080000
  38. #define ADS_PRINTER_USER_INTERVENTION 0x00100000
  39. #define ADS_PRINTER_OUT_OF_MEMORY 0x00200000
  40. #define ADS_PRINTER_DOOR_OPEN 0x00400000
  41. #define ADS_PRINTER_SERVER_UNKNOWN 0x00800000
  42. #define ADS_PRINTER_POWER_SAVE 0x01000000
  43. //
  44. // job status values
  45. //
  46. #define ADS_JOB_PAUSED 0x00000001
  47. #define ADS_JOB_ERROR 0x00000002
  48. #define ADS_JOB_DELETING 0x00000004
  49. #define ADS_JOB_SPOOLING 0x00000008
  50. #define ADS_JOB_PRINTING 0x00000010
  51. #define ADS_JOB_OFFLINE 0x00000020
  52. #define ADS_JOB_PAPEROUT 0x00000040
  53. #define ADS_JOB_PRINTED 0x00000080
  54. #define ADS_JOB_DELETED 0x00000100
  55. //
  56. // service status values
  57. //
  58. #define ADS_SERVICE_STOPPED 0x00000001
  59. #define ADS_SERVICE_START_PENDING 0x00000002
  60. #define ADS_SERVICE_STOP_PENDING 0x00000003
  61. #define ADS_SERVICE_RUNNING 0x00000004
  62. #define ADS_SERVICE_CONTINUE_PENDING 0x00000005
  63. #define ADS_SERVICE_PAUSE_PENDING 0x00000006
  64. #define ADS_SERVICE_PAUSED 0x00000007
  65. #define ADS_SERVICE_ERROR 0x00000008
  66. //---------------------------------------------------------------------
  67. //
  68. // Service Type Valid Values
  69. //
  70. #define ADS_SERVICE_OWN_PROCESS 0x00000010
  71. #define ADS_SERVICE_SHARE_PROCESS 0x00000020
  72. #define ADS_SERVICE_KERNEL_DRIVER 0x00000001
  73. #define ADS_SERVICE_FILE_SYSTEM_DRIVER 0x00000002
  74. //
  75. // Start Type Valid Values
  76. //
  77. #define ADS_SERVICE_BOOT_START SERVICE_BOOT_START
  78. #define ADS_SERVICE_SYSTEM_START SERVICE_SYSTEM_START
  79. #define ADS_SERVICE_AUTO_START SERVICE_AUTO_START
  80. #define ADS_SERVICE_DEMAND_START SERVICE_DEMAND_START
  81. #define ADS_SERVICE_DISABLED SERVICE_DISABLED
  82. //
  83. // Error Control Values
  84. //
  85. #define ADS_SERVICE_ERROR_IGNORE 0
  86. #define ADS_SERVICE_ERROR_NORMAL 1
  87. #define ADS_SERVICE_ERROR_SEVERE 2
  88. #define ADS_SERVICE_ERROR_CRITICAL 3
  89. #ifdef __cplusplus
  90. }
  91. #endif