Is it possible to share a LibUSB-Win32 handle between applications?
"G. Foersler" <[email protected]> Sun, 12 Sep 2021 14:42:16 +0200
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <trinity-fc1db275-4425-4bd9-9345-ffaa6e9ede49-1631450536568@3c-app-gmx-bs20> |
--===============7676813948143761398== Content-Type: text/html; charset=UTF-8 <html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello everyone,</div> <div> </div> <div> <div>I am using LibUSB-Win32 in order to communicate with a USB device. At first, the device is searched for, then it is opened and some settings for the device are transferred using control messages. This is done using a small application written in c++, which is called from a main application (written in another language) via cmd.exe.</div> <div>Another small application is used to transfer data over a bulk endpoint, which may be running in the background after it is started, and a third small application shall be used for further control messages if needed.</div> <div>Is it possible to store the device handle obtained in the first application and share it with the other applications? Like having the first app give the handle to the calling main app, which then shares the handle with the other apps so they can access the USB device without having to search for and open the device by themselves every time they are called.</div> <div>If this is possible, how can the handle be transferred or stored?</div> <div> </div> <div>Thanks!</div> </div></div></body></html> --===============7676813948143761398== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7676813948143761398== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Libusb-win32-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel --===============7676813948143761398==--