Computer Hope

Microsoft => Microsoft Windows => Windows XP => Topic started by: Gujarish on July 05, 2019, 04:44:07 AM

Title: How can we check existence of a USB device
Post by: Gujarish on July 05, 2019, 04:44:07 AM
Hello everyone,,,
My PC has a USB port connecting to an HID machine. After restarting several times, the HID will disappear and can't be shown in Device Manager. What I want to do is to write a program to restart the PC, check existence of that HID and show the restarting count in case of HID disappearing.
My question is how I can check existence of an HID in Visual C++....
Title: Re: How can we check existence of a USB device
Post by: Salmon Trout on July 05, 2019, 07:42:49 AM
What is an HID?
Title: Re: How can we check existence of a USB device
Post by: patio on July 05, 2019, 08:59:06 AM
Human Interface Device...thank Bill Gates for the terminology...
Title: Re: How can we check existence of a USB device
Post by: Salmon Trout on July 05, 2019, 09:25:27 AM
What, keyboard, mouse, trackball, touchpad, etc?
Title: Re: How can we check existence of a USB device
Post by: patio on July 05, 2019, 07:06:49 PM
They all qualify...thats why inventing that term is dumber than a sack of hammers...
Title: Re: How can we check existence of a USB device
Post by: Lisa_maree on July 05, 2019, 08:21:49 PM
Microsoft supplies a program called USBview to diagnose this type of problem might be worth a look.

https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/usbview

Or another option is https://www.nirsoft.net/utils/usb_devices_view.html

Both programs will give information of what is causing the device not to load.