2 * windows UsbDk backend for libusb 1.0
3 * Copyright © 2014 Red Hat, Inc.
6 * Dmitry Fleytman <dmitry@daynix.com>
7 * Pavel Gurvich <pavel@daynix.com>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 #include "windows_nt_common.h"
28 typedef struct USB_DK_CONFIG_DESCRIPTOR_REQUEST {
31 } USB_DK_CONFIG_DESCRIPTOR_REQUEST, *PUSB_DK_CONFIG_DESCRIPTOR_REQUEST;
45 } USB_DK_DEVICE_SPEED;
50 InterruptTransferType,
51 IsochronousTransferType
52 } USB_DK_TRANSFER_TYPE;
54 typedef BOOL (__cdecl *USBDK_GET_DEVICES_LIST)(
55 PUSB_DK_DEVICE_INFO *DeviceInfo,
58 typedef void (__cdecl *USBDK_RELEASE_DEVICES_LIST)(
59 PUSB_DK_DEVICE_INFO DeviceInfo
61 typedef HANDLE (__cdecl *USBDK_START_REDIRECT)(
62 PUSB_DK_DEVICE_ID DeviceId
64 typedef BOOL (__cdecl *USBDK_STOP_REDIRECT)(
67 typedef BOOL (__cdecl *USBDK_GET_CONFIGURATION_DESCRIPTOR)(
68 PUSB_DK_CONFIG_DESCRIPTOR_REQUEST Request,
69 PUSB_CONFIGURATION_DESCRIPTOR *Descriptor,
72 typedef void (__cdecl *USBDK_RELEASE_CONFIGURATION_DESCRIPTOR)(
73 PUSB_CONFIGURATION_DESCRIPTOR Descriptor
75 typedef TransferResult (__cdecl *USBDK_WRITE_PIPE)(
77 PUSB_DK_TRANSFER_REQUEST Request,
78 LPOVERLAPPED lpOverlapped
80 typedef TransferResult (__cdecl *USBDK_READ_PIPE)(
82 PUSB_DK_TRANSFER_REQUEST Request,
83 LPOVERLAPPED lpOverlapped
85 typedef BOOL (__cdecl *USBDK_ABORT_PIPE)(
89 typedef BOOL (__cdecl *USBDK_RESET_PIPE)(
93 typedef BOOL (__cdecl *USBDK_SET_ALTSETTING)(
98 typedef BOOL (__cdecl *USBDK_RESET_DEVICE)(
101 typedef HANDLE (__cdecl *USBDK_GET_REDIRECTOR_SYSTEM_HANDLE)(