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

Do I Need a Handle?

Forums › TWAIN Classic › Do I Need a Handle?

  • This topic has 1 reply, 2 voices, and was last updated 6 years, 2 months ago by MarkM.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 17, 2014 at 9:30 pm #22975 Reply
    LargeDachshund
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    I’m a TWAIN noob. Currently, I’m building software for an interactive touch screen that operates with a scanner. Looking at the toolkit, it implements code for a Windows Forms UI use case.

    Does TWAIN for C# have a use case for programmatic-access, too? My touch screen is not a browser or windows form, but the interactive touch screen software interacts with a C# DLL. I’d like to make the call from the C# DLL without having to “new” a Handle. Is this possible?

    November 20, 2014 at 8:38 pm #26203 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    You should be able to supply the window handle for either the desktop or a console Window, and get the result you desire. You might also a able to create a hidden window. Unfortunately, most TWAIN drivers require a message pump to communicate asynchronous events, like MSG_XFERREADY. Since your solution is self-contained, you could experiment with an alteration to the open source Data Source Manager to disable the requirement for a HWND, and then poll the TWAIN driver for the first image using DG_IMAGE / DAT_IMAGEINFO / MSG_GET, which will return an error until the first image is ready for transfer…

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Do I Need a Handle?
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.