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

Intercepting twain message provided to any application

Forums › TWAIN Classic › Intercepting twain message provided to any application

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by peterp.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 3, 2011 at 1:24 am #22708 Reply
    flyguille
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    I needs to create a module that intercepts any twain session (session of any application), in a transparent way, so when any application gets a image from a scanner, and when the image is sent, my monitor-module will automatically charge a cost$ for using the scanner.

    An easy way that I see, is to activate the log, and to watch it, but I tested and it seems no work in twain v1.711

    so, my question, in TWAIN v1.711 (I needs to support winXP and up), support creating log files in a different way, than the mentioned for v2.x.x in the sticky thread?.

    If v1.711 don’t support .log. It support hooking for monitoring purposes?.

    If v1.711 don’t support hooking for monitoring, anybody already did a hack like encapsulating the real dll and inserting an extra middle-module for do this?

    November 15, 2011 at 9:11 pm #25484 Reply
    peterp
    Participant
    • Topics - 0
    • Replies - 30
    • Total Posts - 30

    All applications that talk to TWAIN scanners do so through the Data Source Manager. The Data Source Manager source code is at http://sourceforge.net/projects/twain-dsm/ .

    You should be able to create your own custom DS manager that monitors all scanning activity, and passes the function calls along to the real DSM. Most operating systems come with the DSM already installed, so you’ll have to figure out how to put your DSM in it’s place while keeping a copy of it around so your fake DSM can load it and pass function calls to it.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Intercepting twain message provided to any application
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

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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.