Which setupapi.dll function allows me to get the current status of a device?
In my C# application, I've already used P/Invoke to call SetupDiGetClassDevs > SetupDiEnumDeviceInfo > SetupDiGetDeviceRegistryProperty to get the names of the devices. Now, I want to display whether or not they are currently enabled or disabled.
Later, I will have code that changes the status. I've found information on MSDN about that, but right now, I don't know how to even get the current state.