Category : usb

PyUSB has a little utility function called usb.util.find_descriptor which, as the name implies, allows me to search for a description with specific criteria, for example: ep = usb.util.find_descriptor( intf, # match the first OUT endpoint custom_match = lambda e: usb.util.endpoint_direction(e.bEndpointAddress) == usb.util.ENDPOINT_OUT) I need the same functionality in a C++ application built with libusb. However ..

Read more

Anyone tried winusb driver for the usb device in windows 10 to read write usb with c#? I am following micro soft sample applications. But this is for their usk kits and not universal. I have changed the vid and PID. Now able to see my usb devices. However cannot read write the usb endpoint ..

Read more

I am building usb blocking software like https://www.usb-lock-rp.com. In this project, important thing is to disable another users to not connect usb. Now only below is a idea I found. C# code disable: (@"HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR", "Start", 4, Microsoft.Win32.RegistryValueKind.DWord); enable: (@"HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR", "Start", 3, Microsoft.Win32.RegistryValueKind.DWord); But I realized its not good solution, because another user can edit this ..

Read more

I am trying to install custom driver using the code if(SetupCopyOEMInfW(arg, NULL, SPOST_PATH, 0, file, ARRAY_SIZE(file), NULL, NULL)) { printf("Inf file copied successfully"); } else { printf("%d",GetLastError()); } where arg is path to the inf file However this fails with error 2147418113 and soemtimes 1906440435 Source: Windows..

Read more