source: Daodan/MinGW/include/ddk/d4iface.h@ 1163

Last change on this file since 1163 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 2.3 KB
Line 
1/*
2 * d4iface.h
3 *
4 * DOT4 interface
5 *
6 * This file is part of the w32api package.
7 *
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
10 *
11 * THIS SOFTWARE IS NOT COPYRIGHTED
12 *
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
15 *
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.
20 *
21 */
22
23#ifndef __D4IFACE_H
24#define __D4IFACE_H
25
26#if __GNUC__ >=3
27#pragma GCC system_header
28#endif
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#include "ntddk.h"
35
36#define DOT4_MAX_CHANNELS 128
37#define NO_TIMEOUT 0
38
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
54
55#define STREAM_TYPE_CHANNEL 1
56#define PACKET_TYPE_CHANNEL 2
57
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
64
65typedef unsigned long CHANNEL_HANDLE, *PCHANNEL_HANDLE;
66
67typedef struct _DOT4_ACTIVITY {
68 ULONG ulMessage;
69 ULONG ulByteCount;
70 CHANNEL_HANDLE hChannel;
71} DOT4_ACTIVITY, *PDOT4_ACTIVITY;
72
73typedef 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;
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif /* __D4IFACE_H */
Note: See TracBrowser for help on using the repository browser.