Add a script to make it easier to initialize /.git
[msysgit/historical-msysgit.git] / mingw / include / ddk / d4drvif.h
blobc10e781705a2d476d34cdd8f1bc1f15f0ba266ea
1 /*
2 * d4drvif.h
4 * DOT4 driver IOCTL 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 __D4DRVIF_H
24 #define __D4DRVIF_H
26 #if __GNUC__ >=3
27 #pragma GCC system_header
28 #endif
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
34 #include "ntddk.h"
35 #include "d4iface.h"
37 #define FILE_DEVICE_DOT4 0x3a
38 #define IOCTL_DOT4_USER_BASE 2049
40 #define IOCTL_DOT4_ADD_ACTIVITY_BROADCAST \
41 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
43 #define IOCTL_DOT4_CLOSE_CHANNEL \
44 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
46 #define IOCTL_DOT4_CREATE_SOCKET \
47 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 7, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
49 #define IOCTL_DOT4_DESTROY_SOCKET \
50 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 9, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
52 #define IOCTL_DOT4_OPEN_CHANNEL \
53 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 0, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
55 #define IOCTL_DOT4_READ \
56 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 2, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
58 #define IOCTL_DOT4_REMOVE_ACTIVITY_BROADCAST \
59 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 5, METHOD_BUFFERED, FILE_ANY_ACCESS)
61 #define IOCTL_DOT4_WAIT_ACTIVITY_BROADCAST \
62 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 6, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
64 #define IOCTL_DOT4_WAIT_FOR_CHANNEL \
65 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 8, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
67 #define IOCTL_DOT4_WRITE \
68 CTL_CODE(FILE_DEVICE_DOT4, IOCTL_DOT4_USER_BASE + 3, METHOD_IN_DIRECT, FILE_ANY_ACCESS)
71 #define MAX_SERVICE_LENGTH 40
73 typedef struct _DOT4_DC_CREATE_DATA {
74 unsigned char bPsid;
75 CHAR pServiceName[MAX_SERVICE_LENGTH + 1];
76 unsigned char bType;
77 ULONG ulBufferSize;
78 USHORT usMaxHtoPPacketSize;
79 USHORT usMaxPtoHPacketSize;
80 unsigned char bHsid;
81 } DOT4_DC_CREATE_DATA, *PDOT4_DC_CREATE_DATA;
83 typedef struct _DOT4_DC_DESTROY_DATA {
84 unsigned char bHsid;
85 } DOT4_DC_DESTROY_DATA, *PDOT4_DC_DESTROY_DATA;
87 typedef struct _DOT4_DC_OPEN_DATA {
88 unsigned char bHsid;
89 unsigned char fAddActivity;
90 CHANNEL_HANDLE hChannelHandle;
91 } DOT4_DC_OPEN_DATA, *PDOT4_DC_OPEN_DATA;
93 typedef struct _DOT4_DRIVER_CMD {
94 CHANNEL_HANDLE hChannelHandle;
95 ULONG ulSize;
96 ULONG ulOffset;
97 ULONG ulTimeout;
98 } DOT4_DRIVER_CMD, *PDOT4_DRIVER_CMD;
100 #ifdef __cplusplus
102 #endif
104 #endif /* __D4DRVIF_H */