Tech Support > Microsoft Windows > Drivers > WinUsb - multi device multi application
WinUsb - multi device multi application
Posted by xxx on January 26th, 2008


Hi,
I am going through documentation available on Winusb and it says that
Winusb shoud be used when "the device is accessed by only a single
application".

My question is

1) if i use multiple instances of same application to communicate with
different intances of same device(i.e. many boards of same kind
connect to PC via hub) , can i use winusb.

2) if my application communicates with different intances of same
device(i.e. many boards of same kind connect to PC via hub) .
Communication with each instance happens in separate thread. Can i use
WinUsb.

3) Can i use WinUSB in both case

Thanks for an answer

-Anshul

Posted by Peter Wieland [MSFT] on January 27th, 2008


WinUSB grants exclusive access to a particular device. So you can have N
instances of your application each talking to a different device. You can
have a single application talking to N devices. You can even have N
applications talking to one device IF they open it at different times. You
cannot have N applications all talking to one device at the same time.

If you need the last option then I'd suggest writing a UMDF driver to load
on the device to interleave commands from multiple applications to the one
device.

-p

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"xxx" <anshul.solanki@gmail.com> wrote in message
news:8806c531-af02-4dd5-bb6d-4efab22587cc@l32g2000hse.googlegroups.com...


Similar Posts