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

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