home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / adssts.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  4KB  |  105 lines

  1. //+---------------------------------------------------------------------------
  2. //  Copyright (C) 1996, Microsoft Corporation.
  3. //
  4. //  File:       status.h
  5. //
  6. //  Contents:   Status Codes for ADS objects
  7. //
  8. //----------------------------------------------------------------------------
  9.  
  10. //
  11. // printer status values
  12. //
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  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. //
  45. // job status values
  46. //
  47.  
  48. #define ADS_JOB_PAUSED                        0x00000001
  49. #define ADS_JOB_ERROR                         0x00000002
  50. #define ADS_JOB_DELETING                      0x00000004
  51. #define ADS_JOB_SPOOLING                      0x00000008
  52. #define ADS_JOB_PRINTING                      0x00000010
  53. #define ADS_JOB_OFFLINE                       0x00000020
  54. #define ADS_JOB_PAPEROUT                      0x00000040
  55. #define ADS_JOB_PRINTED                       0x00000080
  56. #define ADS_JOB_DELETED                       0x00000100
  57.  
  58. //
  59. // service status values
  60. //
  61.  
  62. #define ADS_SERVICE_STOPPED                0x00000001
  63. #define ADS_SERVICE_START_PENDING         0x00000002
  64. #define ADS_SERVICE_STOP_PENDING           0x00000003
  65. #define ADS_SERVICE_RUNNING                 0x00000004
  66. #define ADS_SERVICE_CONTINUE_PENDING       0x00000005
  67. #define ADS_SERVICE_PAUSE_PENDING         0x00000006
  68. #define ADS_SERVICE_PAUSED                 0x00000007
  69. #define ADS_SERVICE_ERROR                  0x00000008
  70.  
  71. //---------------------------------------------------------------------
  72.  
  73. //
  74. // Service Type Valid Values
  75. //
  76.  
  77. #define ADS_SERVICE_OWN_PROCESS           0x00000010
  78. #define ADS_SERVICE_SHARE_PROCESS         0x00000020
  79. #define ADS_SERVICE_KERNEL_DRIVER         0x00000001
  80. #define ADS_SERVICE_FILE_SYSTEM_DRIVER    0x00000002
  81.  
  82. //
  83. // Start Type Valid Values
  84. //
  85.  
  86. #define ADS_SERVICE_BOOT_START          SERVICE_BOOT_START
  87. #define ADS_SERVICE_SYSTEM_START        SERVICE_SYSTEM_START
  88. #define ADS_SERVICE_AUTO_START          SERVICE_AUTO_START
  89. #define ADS_SERVICE_DEMAND_START        SERVICE_DEMAND_START
  90. #define ADS_SERVICE_DISABLED           SERVICE_DISABLED
  91.  
  92. //
  93. // Error Control Values
  94. //
  95.  
  96. #define ADS_SERVICE_ERROR_IGNORE          0
  97. #define ADS_SERVICE_ERROR_NORMAL          1
  98. #define ADS_SERVICE_ERROR_SEVERE          2
  99. #define ADS_SERVICE_ERROR_CRITICAL        3
  100.  
  101.  
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105.