I am developing C# application which needs to find any USB port is free for use or not.
Is there any C# class or WMI query to determine USB Port is free for use or not?
Suppose, If a machine has 5 USB ports and out of which 2 are already occupied by mouse ,keyboard and remaining 3 are free. So I need to identify these ports which are not in use.
Is there any win32 class for this so I can use P/Invoke
Regards,
Amol.