Timeout support in Vendor Request

Hi,

Currently we have USB vendor request support in our own driver. This vendor request remains in blocking mode until device responds. We want to add timeout feature such that request returns on timeout value if device does not respond.

We are using _URB_CONTROL_VENDOR_CLASS_REQUEST data structure to build vendor request URB in WDM. How to change this for timeout support?

Regards,

Shafin Vahora

Software Engineer,

System Level Solutions(India) Pvt. Ltd.