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.

100 lines
2.4 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. D4iface.h
  5. Abstract:
  6. DOT4 Interface
  7. --*/
  8. #ifndef _DOT4_IFACE_H
  9. #define _DOT4_IFACE_H
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. //////////////////////////////////////////////////////////////////////////////
  14. // Includes
  15. //////////////////////////////////////////////////////////////////////////////
  16. //////////////////////////////////////////////////////////////////////////////
  17. // Defines
  18. //////////////////////////////////////////////////////////////////////////////
  19. #define DOT4_MAX_CHANNELS 128
  20. #define NO_TIMEOUT 0
  21. //
  22. // DOT4 Channel types
  23. //
  24. #define STREAM_TYPE_CHANNEL 1
  25. #define PACKET_TYPE_CHANNEL 2
  26. //
  27. // DOT4 broadcast Activity messages
  28. //
  29. #define DOT4_STREAM_RECEIVED 0x100
  30. #define DOT4_STREAM_CREDITS 0x101
  31. #define DOT4_MESSAGE_RECEIVED 0x102 // Message is received
  32. #define DOT4_DISCONNECT 0x103 // The link was disconnected
  33. #define DOT4_CHANNEL_CLOSED 0x105 // A channel was closed
  34. //
  35. // DOT4 Channels
  36. //
  37. #define DOT4_CHANNEL 0
  38. #define HP_MESSAGE_PROCESSOR 1
  39. #define PRINTER_CHANNEL 2
  40. // As of revision 3.7 of the DOT4 specification, socket 3 had no assignment
  41. #define SCANNER_CHANNEL 4
  42. #define MIO_COMMAND_PROCESSOR 5
  43. #define ECHO_CHANNEL 6
  44. #define FAX_SEND_CHANNEL 7
  45. #define FAX_RECV_CHANNEL 8
  46. #define DIAGNOSTIC_CHANNEL 9
  47. #define HP_RESERVED 10
  48. #define IMAGE_DOWNLOAD 11
  49. #define HOST_DATASTORE_UPLOAD 12
  50. #define HOST_DATASTORE_DOWNLOAD 13
  51. #define CONFIG_UPLOAD 14
  52. #define CONFIG_DOWNLOAD 15
  53. //////////////////////////////////////////////////////////////////////////////
  54. // Types
  55. //////////////////////////////////////////////////////////////////////////////
  56. typedef unsigned long CHANNEL_HANDLE;
  57. typedef CHANNEL_HANDLE *PCHANNEL_HANDLE;
  58. typedef struct _DOT4_ACTIVITY
  59. {
  60. ULONG ulMessage;
  61. ULONG ulByteCount;
  62. CHANNEL_HANDLE hChannel;
  63. } DOT4_ACTIVITY, *PDOT4_ACTIVITY;
  64. //////////////////////////////////////////////////////////////////////////////
  65. // Prototypes
  66. //////////////////////////////////////////////////////////////////////////////
  67. #ifdef __cplusplus
  68. // end of extern "C"
  69. }
  70. #endif
  71. #endif // _DOT4_IFACE_H