Is it possible to get the USB port current value when I plug the device in it?
The value should be available programmatically using C#. The second parameter I need is 'USB save power mode'. The correct name of the property is "Allow the computer to turn off this device to save power".
I managed to detect the device (if it is connected or disconnected) and read data from it correctly.
Do these two properties belong to USB device or to USB port?!
WinUSB Api did not give me clear answers to my questions.
Best Answer
you can use the WMI the get the USB port properties
have a look at the below for the properties list
Availability should contain the info you are looking for
http://msdn.microsoft.com/en-us/library/aa394413%28v=vs.85%29.aspx