[2/5] include: add wine_ioctl.h for Wine-proprietary IOCTLs

Damjan Jovanovic damjan.jov at gmail.com
Sun Apr 18 03:25:50 CDT 2010


Changelog:
* include: add wine_ioctl.h for Wine-proprietary IOCTLs

Damjan Jovanovic
-------------- next part --------------
diff --git a/include/wine/wine_ioctl.h b/include/wine/wine_ioctl.h
new file mode 100644
index 0000000..bdaf3e3
--- /dev/null
+++ b/include/wine/wine_ioctl.h
@@ -0,0 +1,41 @@
+/*
+ * Wine-proprietary IOCTLs
+ *
+ * Copyright (C) 2010 Damjan Jovanovic
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef __WINE_WINE_IOCTL_H
+#define __WINE_WINE_IOCTL_H
+
+#include <winioctl.h>
+
+#define FILE_DEVICE_WINE 0xABCD
+
+typedef struct _WINE_USBHUB_NEW_DEVICE_INFO {
+    USHORT vendor_id;
+    USHORT product_id;
+    DWORD bus_number;
+    BOOLEAN has_serial;
+    CHAR serial[1]; /* variable length null-terminated */
+} WINE_USBHUB_NEW_DEVICE_INFO;
+
+/* Notifies usbhub.sys via \\.\WINE_USB_MASTER that a USB device has been plugged in.
+ * Input buffer carries a WINE_USBHUB_NEW_DEVICE_INFO. No output.
+ */
+#define WINE_USBHUB_DEVICE_ADDED   CTL_CODE(FILE_DEVICE_WINE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+#endif  /* __WINE_WINE_IOCTL_H */


More information about the wine-patches mailing list