Is there access to a WINAPI call to obtain the status of a specific device. I can get access to the device using calls:
SetupDiGetClassDevsSetupDiEnumDeviceInfoSetupDiSetSelectedDevice
But I want to remove the device only if the status displays error code 28. (Contact http://support.microsoft.com/kb/125174 for error codes).
From my previous post here, I learned how to remove a device, and this works fine for me.
I just need to know how to get device status using a WINAPI call.
Please guide.
source
share