2

I have written a usb function driver. if I want any usb device that plugged in my computer load this driver rather than its real driver, what should I do? I only know if I change vid/pid when bus driver create pdo, I can make it. But I don't know if there is a easy way to do it. How to change the bus's behaviour? Can a filter driver make it? The platform is Windows.

0

1 Answer 1

1

Your best bet is to implement a HID (Human Interface Device) driver. By following the HID guidelines, most functionality you need is already supported, without having to write a custom device driver.

Here are some links to get you started:

Using the HID class eases the job of writing USB device drivers
http://www.edn.com/design/communications-networking/4336292/Using-the-HID-class-eases-the-job-of-writing-USB-device-drivers

Touch, Input, and HID: Architecture and Driver Support
http://msdn.microsoft.com/en-us/library/windows/hardware/gg487435.aspx

For redirection over a network, have a look at the FreeRDP project. It's open-source, under the Apache license, so you can pretty much do whatever you want with the code.

Sign up to request clarification or add additional context in comments.

8 Comments

thanks for your answer, but what my program to do is redirect usb, that is, plugged in one computer and use in another computer. I need a custom fuction driver to deal with the usb request from the remote pc.
If you're connecting a computer to another computer, you need more than just a software driver.
I transmit urb request via internet; each computer has a driver.
I think you need to tell us a little bit more about what you are trying to do.
to write a program like this product. incentivespro.com/usb-redirector.html
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.