WinUsb - multi device multi application

Discussion in 'Windows Vista Drivers' started by xxx, Jan 26, 2008.

  1. xxx

    xxx Guest

    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
     
    xxx, Jan 26, 2008
    #1
    1. Advertisements

  2. 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
     
    Peter Wieland [MSFT], Jan 27, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.