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

DSM_Entry use in C#

Forums › TWAIN Classic › DSM_Entry use in C#

  • This topic has 1 reply, 1 voice, and was last updated 11 years, 6 months ago by da9287.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 24, 2009 at 7:17 pm #22541 Reply
    da9287
    Participant
    • Topics - 4
    • Replies - 3
    • Total Posts - 7

    I am using SDM_Entry with Control, Identity and GetDefault, the last parameter requires IntPtr. I have TwIdentity = srcds that I need to pass in place of the last argument. Does anyone know how to pass it in place of th last parameter or how to convert it to IntrPtr in C#? I have experimented to use unsafe &srcds. As it seems C# does not allow the address conversion of struct.

    Can anyone advie?

    September 27, 2009 at 10:13 pm #25046 Reply
    da9287
    Participant
    • Topics - 4
    • Replies - 3
    • Total Posts - 7

    Never mind I have figured it:

    [DllImport(“twain_32.dll”, EntryPoint = “#1”)]
    private static extern TwRC foo([In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwIdentity idds);

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: DSM_Entry use in C#
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.