dear all!
i start to develop a ndis driver over usb, but i don't know how to get the
USB_HANDLE from DriverObject passing by DriverEntry function, so i can use
the USB client functions. i have studied the rndis sample, but i don't know
how to control the data flow, because the device i am developing is not a
ethernet device.
anybody can help me to tell me how to get the USB_HANDLE or how to modify
the rndis sample?
regards,
iintsy
the following is the usb device's interface's info:
Device Descriptor:
bcdUSB: 0x0200
bDeviceClass: 0x00
bDeviceSubClass: 0x00
bDeviceProtocol: 0x00
bMaxPacketSize0: 0x40 (64)
idVendor: 0x7565
idProduct: 0x6301
bcdDevice: 0x0100
iManufacturer: 0x01
iProduct: 0x02
iSerialNumber: 0x03
bNumConfigurations: 0x01
ConnectionStatus: DeviceConnected
Current Config Value: 0x01
Device Bus Speed: Full
Device Address: 0x01
Open Pipes: 7
Endpoint Descriptor:
bEndpointAddress: 0x81
Transfer Type: Interrupt
wMaxPacketSize: 0x0040 (64)
bInterval: 0x01
Endpoint Descriptor:
bEndpointAddress: 0x01
Transfer Type: Interrupt
wMaxPacketSize: 0x0040 (64)
bInterval: 0x01
Endpoint Descriptor:
bEndpointAddress: 0x82
Transfer Type: Bulk
wMaxPacketSize: 0x0200 (512)
bInterval: 0x01
Endpoint Descriptor:
bEndpointAddress: 0x02
Transfer Type: Bulk
wMaxPacketSize: 0x0200 (512)
bInterval: 0x01
Endpoint Descriptor:
bEndpointAddress: 0x85
Transfer Type: Bulk
wMaxPacketSize: 0x0200 (512)
bInterval: 0x01
Endpoint Descriptor:
bEndpointAddress: 0x06
Transfer Type: Interrupt
wMaxPacketSize: 0x0040 (64)
bInterval: 0x01
Endpoint Descriptor:
bEndpointAddress: 0x87
Transfer Type: Interrupt
wMaxPacketSize: 0x0040 (64)
bInterval: 0x01