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

Q "DG_CONTROL/DAT_ENTRYPOINT/MSG_SET(MSG_GET)"

Forums › TWAIN Classic › Q "DG_CONTROL/DAT_ENTRYPOINT/MSG_SET(MSG_GET)"

  • This topic has 3 replies, 3 voices, and was last updated 6 years, 10 months ago by MarkM.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 21, 2013 at 6:58 am #22826 Reply
    takgyukim
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    I am testing the TWAIN driver of a scanner.
    Is the following certainly required CAP?

    “DG_CONTROL/DAT_ENTRYPOINT/MSG_SET(MSG_GET)”

    It seems that the above-mentioned command becomes effective when supporting DSM2 to the source code which I obtained.
    DF_DSM2 does not understand what it is.
    Is it the function added after the version 2.0?

    February 26, 2013 at 8:35 pm #25817 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    Howdy…

    First off, here are the rules…

    If the application reports itself as TWAIN version 2.0 or higher *and* it includes the DF_APP2 flag in its TW_IDENTITY.SupportedGroups field, then the application fully supports TWAIN 2.0.

    If the TW_IDENTITY.SupportedGroups field from the application includes the DF_DSM2 flag, then the Data Source Manager (DSM) fully supports TWAIN 2.0.

    If the TWAIN driver reports itself as TWAIN version 2.0 or higher *and* it includes the DF_DS2 flag in its TW_IDENTITY.SupportedGroups field, then the driver fully supports TWAIN 2.0.

    Any combination of the three situations described above is allowed, but the following two are the only ones you need to worry about. Refer to the TWAIN Specification to see what DAT_ENTRYPOINT is doing.

    If the DSM and the application both support TWAIN 2.0, then the application must call DG_CONTROL / DAT_ENTRYPOINT / MSG_GET down into the DSM before calling DG_CONTROL / DAT_IDENTITY / MSG_OPENDS.

    If the DSM and the driver both support TWAIN 2.0, then the DSM will automatically call DG_CONTROL / DAT_ENTRYPOINT / MSG_SET down into the driver before it passes along a call to DG_CONTROL / DAT_IDENTITY / MSG_OPENDS from the application.

    May 31, 2014 at 5:16 am #25818 Reply
    cmagagnosc
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    If I understand correctly, memory allocated by a TWAIN 1 source (using ::GlobalAlloc) and passed to a TWAIN 2 app (which will call DSM_MemFree to free it) will be handled properly by a TWAIN 2 manager (i.e., freed using ::GlobalFree)?

    June 2, 2014 at 1:20 pm #25819 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    Currently, on Windows, the Global heap calls are still used throughout the system. We’ve not done anything fancy yet.

    The intention for TWAIN 2.x was to provide a path to using alternatives. Therefore, at some future date, if the DSM recognizes that both the application and the driver fully support TWAIN 2.x, it will have the option to use a different heap API, since both will be calling memory functions from inside of the DSM.

    If either the application or the driver isn’t TWAIN 2.x compliant, the DSM will always revert to the Global heap calls.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Q "DG_CONTROL/DAT_ENTRYPOINT/MSG_SET(MSG_GET)"
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

  • Sports betting Bonus Code
  • 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.