Can I hide webcam devices from the select source list?
Many webcam devices may use WIA drivers. As explained in this article, WIA drivers can also be detected by the Dynamic Web TWAIN SDK. If you need to exclude webcam/camera devices, you can try using GetDeviceType API to verify if a source is a scanner or not. If not, you can skip it from your source list.
Please note that you would need to call OpenSource API to open a source before you can inspect its device type. If there are any offline devices in the source name list, this process would be interrupted.
Another workaround is to exclude some sources by detecting certain keywords from the source name list. E.g. you can try to exclude any source names with ‘camera’ or ‘webcam’. Please refer to this FAQ for more details.
In this article: