I want to port libUSB driver to the windows driver using WDK (In Kernel Mode). I found that libUSB internally uses the winUSB ( From libUSB Sources).
This is what I do in the libusb,
I get the handle using, libusb_open_device_with_vid_pid
or libusb internally uses pSetupDiGetClassDevsA and other pSetupDi*** functions
I send the data using libusb_control_transfer or internally WinUSB's WinUsb_WritePipe
What are the equivalent functions of this in WDK in Kernel mode? Is there any sample that I can use?
NOTE: The reason I am asking for kernel mode is, I need to take this data and re-route it as HID Mini Driver.