6 * This file is part of the w32api package.
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27 #pragma GCC system_header
36 #define DOT4_MAX_CHANNELS 128
39 #define DOT4_CHANNEL 0
40 #define HP_MESSAGE_PROCESSOR 1
41 #define PRINTER_CHANNEL 2
42 #define SCANNER_CHANNEL 4
43 #define MIO_COMMAND_PROCESSOR 5
44 #define ECHO_CHANNEL 6
45 #define FAX_SEND_CHANNEL 7
46 #define FAX_RECV_CHANNEL 8
47 #define DIAGNOSTIC_CHANNEL 9
48 #define HP_RESERVED 10
49 #define IMAGE_DOWNLOAD 11
50 #define HOST_DATASTORE_UPLOAD 12
51 #define HOST_DATASTORE_DOWNLOAD 13
52 #define CONFIG_UPLOAD 14
53 #define CONFIG_DOWNLOAD 15
55 #define STREAM_TYPE_CHANNEL 1
56 #define PACKET_TYPE_CHANNEL 2
58 /* DOT4_ACTIVITY.ulMessage flags */
59 #define DOT4_STREAM_RECEIVED 0x100
60 #define DOT4_STREAM_CREDITS 0x101
61 #define DOT4_MESSAGE_RECEIVED 0x102
62 #define DOT4_DISCONNECT 0x103
63 #define DOT4_CHANNEL_CLOSED 0x105
65 typedef unsigned long CHANNEL_HANDLE
, *PCHANNEL_HANDLE
;
67 typedef struct _DOT4_ACTIVITY
{
70 CHANNEL_HANDLE hChannel
;
71 } DOT4_ACTIVITY
, *PDOT4_ACTIVITY
;
73 typedef struct _DOT4_WMI_XFER_INFO
{
74 ULONG ulStreamBytesWritten
;
75 ULONG ulStreamBytesRead
;
76 ULONG ulPacketBytesWritten
;
77 ULONG ulPacketBytesRead
;
78 } DOT4_WMI_XFER_INFO
, *PDOT4_WMI_XFER_INFO
;
84 #endif /* __D4IFACE_H */