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

Reply To: Duplex scanning both side

Forums › TWAIN Classic › Duplex scanning both side › Reply To: Duplex scanning both side

August 10, 2007 at 9:40 pm #24026
Som
Participant
  • Topics - 3
  • Replies - 5
  • Total Posts - 8

public TwCapability( TwCap cap, short sval )
{
Cap = (short) cap;
ConType = (short) TwOn.One;
hContainer = Twain.GlobalAlloc( 0x42, 6 );
IntPtr pv = Twain.GlobalLock( hContainer );
Marshal.WriteInt16( pv, 0, (short) TwType.Int16 );
Marshal.WriteInt32( pv, 2, (int) sval );
Twain.GlobalUnlock( Handle);
}

cap = new TwCapability(TwCap.CAP_DUPLEXENABLED, 1); //TwCap.CAP_DUPLEXENABLED=0x1013

rc = DScap(appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Set, cap);

it says rc = Success,

Then,

cap = new TwCapability( TwCap.CAP_DUPLEX, 4114 ); //TwCap.CAP_DUPLEX=0x1012
rc = DScap( appid, srcds, TwDG.Control, TwDAT.Capability, TwMSG.Get, cap );
Also says Success

But it Scans only one side.

Scanner’s OEM interface and TWACKER 32 sample app works fine.

Just couldn’t get C# tests working..

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

  • Big Ass Photos – Free Huge Butt Porn, Big Booty Pics
  • 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.
  • 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