In Windows with the webcam plugged in does the webcame appear as a PNPDevice?
You can use Powershell's Get-PNPDevice to look for the webcam. Run as Admin.
Reference:
https://learn.microsoft.com/en-us/p...evice/get-pnpdevice?view=windowsserver2022-ps
The initial device list may be lengthy. However, you can refer to the various examples to filter the list as necessary.
For example (from my computer):
PS C:\WINDOWS\system32> Get-PNPDevice -Class 'USB'
Status Class FriendlyName InstanceId
------ ----- ------------ ----------
OK USB Logitech USB Camera (Pro 9000) USB\VID_...
OK USB Intel(R) USB 3.1 eXtensible Host Controller - 1.10 (Microsoft) PCI\VEN_...
Unknown USB Logitech USB Camera (Webcam 250) USB\VID_...
OK USB USB Root Hub (USB 3.0) USB\ROOT...
OK USB Realtek USB 2.0 Card Reader USB\VID_...
Unknown USB Sony USB Floppy USB\VID_...
OK USB USB Composite Device
(And I do have the Logitech 9000).
Run the Get without the camera connected. Then run again with the camera connected. Try different USB ports if necessary.
Objective being to determine if the camera "is there"....