I'm trying to communicate with a midi device. When using libusb_bulk_transfer or libusb_interrupt_transfer, I get a -5 error (Entity not found).
Theres two other questions describing my problem (here and here), both tell me to claim the interface before using it.
The problem is that I'm on windows, and that function (libusb_claim_interface) isn't availible in Windows. It returns -12, which means Operation not supported or unimplemented on this platform, same goes for detach_kernel_driver and other things like that.
What could be the reason of that error code and how can I fix it?
I added a "minimal reproducible example" although you probably don't have the same device and drivers I do : https://github.com/Guigui220D/libusb-zig-problem.