- 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...
- Best Multi-chip multi-core mobo question (Computer Hardware) by Mike
- Multi region / multi format players (Video & DVD) by br2001@webtv.net
- Setting up multi-boot copies of XP on multi drives. Help. (Help and Support) by Old Man
- Debugging Multi-threaded application in VC++ 6.0 (Development Resources) by Mahesh
- Multi language support in my VC application (Development Resources) by Dhaivat Shah

