Leaked source code of windows server 2003
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.

112 lines
4.4 KiB

  1. /*****************************************************************************
  2. *
  3. * $Workfile: Status.h $
  4. *
  5. * Copyright (C) 1997 Hewlett-Packard Company.
  6. * Copyright (C) 1997 Microsoft Corporation.
  7. * All rights reserved.
  8. *
  9. * 11311 Chinden Blvd.
  10. * Boise, Idaho 83714
  11. *
  12. *****************************************************************************/
  13. //status.h
  14. #ifndef STATUS_H
  15. #define STATUS_H
  16. /* Asynch status codes, Peripheral Status Values */
  17. #define MAX_ASYNCH_STATUS 76 /* MAX for generic printer applet */
  18. #define ASYNCH_STATUS_UNKNOWN 0xFFFFFFFF
  19. #define ASYNCH_PRINTER_ERROR 0
  20. #define ASYNCH_DOOR_OPEN 1
  21. #define ASYNCH_WARMUP 2
  22. #define ASYNCH_RESET 3
  23. #define ASYNCH_OUTPUT_BIN_FULL 4 /* yellow condition */
  24. #define ASYNCH_PAPER_JAM 5
  25. #define ASYNCH_TONER_GONE 6
  26. #define ASYNCH_MANUAL_FEED 7
  27. #define ASYNCH_PAPER_OUT 8
  28. #define ASYNCH_PAGE_PUNT 9
  29. #define ASYNCH_MEMORY_OUT 10
  30. #define ASYNCH_OFFLINE 11
  31. #define ASYNCH_INTERVENTION 12
  32. #define ASYNCH_INITIALIZING 13
  33. #define ASYNCH_TONER_LOW 14
  34. #define ASYNCH_PRINTING_TEST_PAGE 15
  35. #define ASYNCH_PRINTING 16
  36. #define ASYNCH_ONLINE 17
  37. #define ASYNCH_BUSY 18
  38. #define ASYNCH_NOT_CONNECTED 19
  39. #define ASYNCH_STATUS_UNAVAILABLE 20
  40. #define ASYNCH_NETWORK_ERROR 21
  41. #define ASYNCH_COMM_ERROR 22
  42. #define ASYNCH_BLACK_AGENT_EMPTY 23
  43. #define ASYNCH_MAGENTA_AGENT_EMPTY 24
  44. #define ASYNCH_CYAN_AGENT_EMPTY 25
  45. #define ASYNCH_YELLOW_AGENT_EMPTY 26
  46. #define ASYNCH_BLACK_AGENT_MISSING 27
  47. #define ASYNCH_MAGENTA_AGENT_MISSING 28
  48. #define ASYNCH_CYAN_AGENT_MISSING 29
  49. #define ASYNCH_YELLOW_AGENT_MISSING 30
  50. #define ASYNCH_TRAY1_EMPTY 31 /* yellow condition */
  51. #define ASYNCH_TRAY2_EMPTY 32 /* yellow condition */
  52. #define ASYNCH_TRAY3_EMPTY 33 /* yellow condition */
  53. #define ASYNCH_TRAY1_JAM 34
  54. #define ASYNCH_TRAY2_JAM 35
  55. #define ASYNCH_TRAY3_JAM 36
  56. #define ASYNCH_POWERSAVE_MODE 37 /* MAX for generic printer & Arrakis */
  57. #define ASYNCH_ENVL_ERROR 38
  58. #define ASYNCH_HCI_ERROR 39
  59. #define ASYNCH_HCO_ERROR 40
  60. #define ASYNCH_HCI_EMPTY 41 /* yellow condition */
  61. #define ASYNCH_HCI_JAM 42
  62. #define ASYNCH_TRAY1_ADD 43 /* red condition */
  63. #define ASYNCH_TRAY2_ADD 44 /* red condition */
  64. #define ASYNCH_TRAY3_ADD 45 /* red condition */
  65. #define ASYNCH_HCI_ADD 46 /* red condition */
  66. #define ASYNCH_TRAY1_UNKNOWN_MEDIA 47 /* yellow condition */
  67. #define ASYNCH_CLEAR_OUTPUT_BIN 48 /* red condition */
  68. #define ASYNCH_CARRIAGE_STALL 49
  69. #define ASYNCH_COLOR_AGENT_EMPTY 50
  70. #define ASYNCH_COLOR_AGENT_MISSING 51
  71. #define ASYNCH_BLACK_AGENT_INCORRECT 52
  72. #define ASYNCH_MAGENTA_AGENT_INCORRECT 53
  73. #define ASYNCH_CYAN_AGENT_INCORRECT 54
  74. #define ASYNCH_YELLOW_AGENT_INCORRECT 55
  75. #define ASYNCH_COLOR_AGENT_INCORRECT 56
  76. #define ASYNCH_BLACK_AGENT_INCORRECT_INSTALL 57
  77. #define ASYNCH_MAGENTA_AGENT_INCORRECT_INSTALL 58
  78. #define ASYNCH_CYAN_AGENT_INCORRECT_INSTALL 59
  79. #define ASYNCH_YELLOW_AGENT_INCORRECT_INSTALL 60
  80. #define ASYNCH_COLOR_AGENT_INCORRECT_INSTALL 61
  81. #define ASYNCH_BLACK_AGENT_FAILURE 62
  82. #define ASYNCH_MAGENTA_AGENT_FAILURE 63
  83. #define ASYNCH_CYAN_AGENT_FAILURE 64
  84. #define ASYNCH_YELLOW_AGENT_FAILURE 65
  85. #define ASYNCH_COLOR_AGENT_FAILURE 66
  86. #define ASYNCH_TRAY1_MISSING 67
  87. #define ASYNCH_TRAY2_MISSING 68
  88. #define ASYNCH_TRAY3_MISSING 69
  89. //imports==================================================
  90. #ifdef __cplusplus
  91. extern "C" {
  92. #endif
  93. //prototypes===============================================
  94. DWORD StdMibGetPeripheralStatus( const char *pHost, const char *pCommunity, DWORD dwDevIndex );
  95. DWORD ProcessCriticalAlerts( DWORD errorState);
  96. DWORD ProcessWarningAlerts( DWORD errorState);
  97. DWORD ProcessOtherAlerts( DWORD deviceStatus);
  98. void GetBitsFromString( LPSTR getVal, DWORD getSiz, LPDWORD bits);
  99. #ifdef __cplusplus
  100. }
  101. #endif
  102. #endif //STATUS_H