2011-12-25 18:17:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define _HIDPI_
|
|
|
|
#define _HIDPI_NO_FUNCTION_MACROS_
|
|
|
|
#include <ntddk.h>
|
|
|
|
#include <hidport.h>
|
|
|
|
#include <debug.h>
|
2011-12-26 21:51:05 +00:00
|
|
|
#include <hubbusif.h>
|
|
|
|
#include <usbbusif.h>
|
|
|
|
#include <usbioctl.h>
|
|
|
|
#include <usb.h>
|
|
|
|
#include <usbdlib.h>
|
2011-12-25 18:17:07 +00:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
//
|
|
|
|
// event for completion
|
|
|
|
//
|
|
|
|
KEVENT Event;
|
|
|
|
|
|
|
|
//
|
|
|
|
// list for pending requests
|
|
|
|
//
|
|
|
|
LIST_ENTRY PendingRequests;
|
|
|
|
|
2011-12-26 18:20:32 +00:00
|
|
|
//
|
2011-12-26 21:51:05 +00:00
|
|
|
// device descriptor
|
2011-12-26 18:20:32 +00:00
|
|
|
//
|
2011-12-26 21:51:05 +00:00
|
|
|
PUSB_DEVICE_DESCRIPTOR DeviceDescriptor;
|
|
|
|
|
|
|
|
//
|
|
|
|
// configuration descriptor
|
|
|
|
//
|
|
|
|
PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor;
|
|
|
|
|
|
|
|
//
|
|
|
|
// interface information
|
|
|
|
//
|
|
|
|
PUSBD_INTERFACE_INFORMATION InterfaceInfo;
|
2011-12-26 18:20:32 +00:00
|
|
|
|
2011-12-26 21:51:05 +00:00
|
|
|
//
|
|
|
|
// configuration handle
|
|
|
|
//
|
|
|
|
USBD_CONFIGURATION_HANDLE ConfigurationHandle;
|
2011-12-26 18:20:32 +00:00
|
|
|
|
2011-12-26 21:51:05 +00:00
|
|
|
//
|
|
|
|
// hid descriptor
|
|
|
|
//
|
|
|
|
PHID_DESCRIPTOR HidDescriptor;
|
2011-12-25 18:17:07 +00:00
|
|
|
}HID_USB_DEVICE_EXTENSION, *PHID_USB_DEVICE_EXTENSION;
|
|
|
|
|