I am a car racer on iRacing and I would like to create a program similar to DIView.exe by Leo Bodnar. DIView allows you to see all of the data being passed back from USB racing pedals.
Kindly point me in the correct direction and I will do the research and will play with it. I am using C10 currently.
If it’s actually USB hardware, like you say in the title of the post, I’m not entirely sure WinEvent will help you. Communicating with USB hardware is a different kettle of fish than serial.
With a serial device you’re talking to the serial port, and you have to hope the right hardware is attached to it. With USB you talk to the device itself, the OS takes care of tracking what USB port it’s attached to.
So although you ultimately use the same API calls to read/write data to a USB device that implements HID as you do with serial devices (ReadFile & WriteFile), the enumeration process (and the name you end up passing to CreateFile) are completely different