| Q When I make the USBGetNextDeviceByClasscall, error -43 (file not found) error is returned. My device is
attached, and is displayed by USB Prober. The call used to work, but
no longer. Why? A If you make the USBGetNextDeviceByClasscall, you must set the inputdeviceRefparameter to a valid devicerefor to the predefined constantkNoDeviceRef. If the deviceRef
parameter is a different value, then error -43 results. If you set
the inputdeviceRefvalue to a validdeviceRef, thenUSBGetNextDeviceByClassreturns the next device that is found in the
"USB device list", which matches the specified criteria. The key
point here is that the inputdeviceRefvalue must be valid or -1.
Note that error -43 might still be returned, if there are no more
devices in the device list. [Sep 28 1998] |