Re: Is it possible to share a LibUSB-Win32 handle between applications?

"G. Foersler" <[email protected]> Sun, 19 Sep 2021 22:08:35 +0200
Newsgroups gmane.comp.lib.libusb.devel.windows
Message-ID <trinity-6f571e8d-7c08-402c-8abd-e9c62d186efa-1632082115288@3c-app-gmx-bs49>
--===============4959108008471326170==
Content-Type: text/html; charset=UTF-8

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div><br/>
&gt; Yeah, as Xianfan states, its not possible with this or any other<br/>
&gt; similar libarary. You cannot handover handles to<br/>
&gt; resources/devices/files from one application to another. That would be<br/>
&gt; a major security hole if you could. Most O/S only allow this is very<br/>
&gt; limited form.<br/>
&nbsp;</div>

<div>I can integrate some C++ functions into the main applications that have access to its memory space.</div>

<div>Maybe I can then share the handle.</div>

<div>Problem is actually that mingw refuses to build the code.</div>

<div>&nbsp;</div>

<div>The linker seems to complain about &quot;undefined reference to &#96;usb_init&#39; and all the other libusb refernces.</div>

<div>I tried to point it to the libusb.a file but it does not recognize it.</div>

<div>&nbsp;</div>

<div>Could the problem be that the main application is 64 bit and the library is 32 bit? Do I need a 64 bit library? Sounds weird if the name is libusb-win32...</div>

<div>&nbsp;</div>

<div>Sorry if I sound stupid, but regarding compilers, libraries and so I really am.</div>

<div>&nbsp;</div>

<div>&nbsp;</div></div></body></html>


--===============4959108008471326170==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4959108008471326170==
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

--===============4959108008471326170==--