Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / include / ddk / d4iface.h
blob245bc4c82b9dc6518e7fe3023ea6d68954f7aff3
1 /*
2 * d4iface.h
4 * DOT4 interface
6 * This file is part of the w32api package.
8 * Contributors:
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.
23 #ifndef __D4IFACE_H
24 #define __D4IFACE_H
26 #if __GNUC__ >=3
27 #pragma GCC system_header
28 #endif
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
34 #include "ntddk.h"
36 #define DOT4_MAX_CHANNELS 128
37 #define NO_TIMEOUT 0
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 {
68 ULONG ulMessage;
69 ULONG ulByteCount;
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;
80 #ifdef __cplusplus
82 #endif
84 #endif /* __D4IFACE_H */