Home › Forums › TWAIN Specification › TWAIN Specification Discussion › How to detect scanner, not cameras, using TWAIN
- This topic is empty.
- AuthorPosts
- Oleg
I develop app using TWAIN scanners. I need to choose only scanners, not cameras or something else. I cant’t see any info about device type in command response DG_CONTROL / DAT_IDENTITY /MSG_GETFIRST.
MarkMSadly, there is no way to do that from TWAIN. One way to do it is to enum the #### keys in the registry at this location: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{6bdd1fc6-810f-11d0-bec7-08002be2092f}
She the DeviceType, and look at this site for information: https://docs.microsoft.com/en-us/windows-hardware/drivers/image/inf-files-for-still-image-devices
Matching the Vendor to the TW_IDENTITY.Manufacturer may get you close.
- AuthorPosts