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

I want to use TW_TWUNKIDENTITY to get the DSM path.

Forums › TWAIN Classic › I want to use TW_TWUNKIDENTITY to get the DSM path.

  • This topic has 1 reply, 2 voices, and was last updated 6 years, 12 months ago by MarkM.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 23, 2014 at 9:11 am #22910 Reply
    Sharad
    Participant
    • Topics - 9
    • Replies - 3
    • Total Posts - 12

    Hi,
    I want to know DSM path and for that I am using TW_TWUNKIDENTITY since it has second parameter
    as dsm path.

    my source code is as below

    TW_TWUNKIDENTITY m_SourceID;
    bReturn = m_DSMEntry(pOrigin,NULL,DG_CONTROL,DAT_TWUNKIDENTITY,MSG_GET,&m_SourceID);

    am I doing correct?

    here second paremeter I am passing as NULL. I even tried passing TW_IDENTITY value which i used to get while opening the DSM.

    what is the correct way of doing that?
    Please let me know.

    Thanks-
    Sharad

    January 30, 2014 at 4:55 pm #26060 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    DAT_THUNKIDENTITY is an undocumented operation that was intended for use with the old 16-bit thunking system in Windows systems.

    It’s been maintained in the new open source DSM, because some vendors accessed the dsPath info, and we didn’t want to break them.

    To use it one has to populate the TW_THUNKIDENTITY.identity structure with the TW_IDENTITY info for a driver (obtained using DAT_IDENTITY / MSG_GET, MSG_GETDEFAULT, MSG_GETFIRST, MSG_GETNEXT or MSG_OPENDS).

    The dsPath field returns the full path and name of the .ds file associated with the given TW_IDENTITY structure…

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: I want to use TW_TWUNKIDENTITY to get the DSM path.
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.