<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<pre>Zadig
I found a way to make my test with libusb-win32 work. You just need to install a specific driver for the usb device you want to see.</pre>
<pre>This can be done using Zadig ( <a class="moz-txt-link-freetext" href="https://zadig.akeo.ie/">https://zadig.akeo.ie/</a> ). If you change the driver to "libusbK" or "libusb-win32" for a certain device with Zadig, it will appear with lsusb_libusb-win32\lsusb.exe .
But it doesn't change anything for the version with libusb-compat, lsusb_libusb-compat-msys2_mingw64\lsusb.exe wich shows nothing.
And it doesn't change anything either to the version with libusb, <a class="moz-txt-link-freetext" href="https://github.com/jsuzineau/pascal_o_r_mapping/releases/tag/2019_08_03_lsusb">https://github.com/jsuzineau/pascal_o_r_mapping/releases/tag/2019_08_03_lsusb</a> which continue to show all the usb devices.
I have also tried libusbK ( <a class="moz-txt-link-freetext" href="http://libusbk.sourceforge.net/UsbK3/index.html">http://libusbk.sourceforge.net/UsbK3/index.html</a> ).
You can download it at <a class="moz-txt-link-freetext" href="https://sourceforge.net/projects/libusbk/">https://sourceforge.net/projects/libusbk/</a>
There are delphi examples in the subdirectory bindings\examples_delphi .
They can be compiled easily with freepascal, you just need to compile in delphi mode.
For "bindings\examples_delphi\enumerate.dpr" you can use this command line ( from a cmd in the directory examples_delphi)
C:\lazarus\fpc\3.0.4\bin\x86_64-win64\fpc.exe -MDelphi -Scghi -O1 -g -gl -l -vewnhibq -Filib\x86_64-win64 -Fu. -FUlib\x86_64-win64 -FE. -oenumerate.exe enumerate.dpr
For "bindings\examples_delphi\opendevice.dpr" it didn't found unit UExampleHelpers. I didn't investigated further but it seems you can find the unit at :
<a class="moz-txt-link-freetext" href="https://github.com/SimaWB/libusbkDelphi/blob/master/UExampleHelpers.pas">https://github.com/SimaWB/libusbkDelphi/blob/master/UExampleHelpers.pas</a></pre>
</body>
</html>