d4iface.h 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #define _DOT4_IFACE_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define DOT4_MAX_CHANNELS 128
  7. #define NO_TIMEOUT 0
  8. #define STREAM_TYPE_CHANNEL 1
  9. #define PACKET_TYPE_CHANNEL 2
  10. #define DOT4_STREAM_RECEIVED 0x100
  11. #define DOT4_STREAM_CREDITS 0x101
  12. #define DOT4_MESSAGE_RECEIVED 0x102
  13. #define DOT4_DISCONNECT 0x103
  14. #define DOT4_CHANNEL_CLOSED 0x105
  15. #define DOT4_CHANNEL 0
  16. #define HP_MESSAGE_PROCESSOR 1
  17. #define PRINTER_CHANNEL 2
  18. #define SCANNER_CHANNEL 4
  19. #define MIO_COMMAND_PROCESSOR 5
  20. #define ECHO_CHANNEL 6
  21. #define FAX_SEND_CHANNEL 7
  22. #define FAX_RECV_CHANNEL 8
  23. #define DIAGNOSTIC_CHANNEL 9
  24. #define HP_RESERVED 10
  25. #define IMAGE_DOWNLOAD 11
  26. #define HOST_DATASTORE_UPLOAD 12
  27. #define HOST_DATASTORE_DOWNLOAD 13
  28. #define CONFIG_UPLOAD 14
  29. #define CONFIG_DOWNLOAD 15
  30. typedef ULONG CHANNEL_HANDLE, *PCHANNEL_HANDLE;
  31. typedef struct _DOT4_ACTIVITY {
  32. ULONG ulMessage;
  33. ULONG ulByteCount;
  34. CHANNEL_HANDLE hChannel;
  35. } DOT4_ACTIVITY, *PDOT4_ACTIVITY;
  36. #ifdef __cplusplus
  37. }
  38. #endif