TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

How to detect scanner, not cameras, using TWAIN

Forums › TWAIN Specification › TWAIN Specification Discussion › How to detect scanner, not cameras, using TWAIN

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 3, 2020 at 2:14 am #52567 Reply
    Oleg
    • Topics - 93
    • Replies - 183
    • Total Posts - 276

    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.

    October 29, 2020 at 8:11 am #52608 Reply
    MarkM
    • Topics - 93
    • Replies - 183
    • Total Posts - 276

    Sadly, 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.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to detect scanner, not cameras, using TWAIN
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.