0

I have multiple Logitech Usb Webcam that are connected into the PC.

Now, I need to read the "Adress" field property of the Perticuler USB WebCam device.

I have googled and tried several System.Management codes BUt nothing helps.

Please advise me about this.

enter image description here

Abu Muhammad
  • 421
  • 2
  • 13

1 Answers1

0

Try using SetupAPI. You'll have to learn a lot of about the API and possibly add several PInvoke declarations to your program to use it if you cannot find a good C# wrapper for it that someone else has written. The SetupDiGetDeviceRegistryProperty function, with its third argument set to SPDRP_ADDRESS, will probably do what you want.

David Grayson
  • 84,103
  • 24
  • 152
  • 189