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

"Waking up" scanner from power save?

Forums › TWAIN Classic › "Waking up" scanner from power save?

  • This topic has 1 reply, 1 voice, and was last updated 10 years, 10 months ago by twainuser123.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • May 21, 2010 at 1:30 am #22610 Reply
    twainuser123
    Participant
    • Topics - 9
    • Replies - 28
    • Total Posts - 37

    Hi,

    I was wondering how I could wake up a scanner from power save mode without using TWAIN 2.0 if possible.

    This is not done automatically because when I open a power saved data source, the open operation simply fails.

    I tried this code, but get an error:

    TW_CAPABILITY capabilityToGet;
    capabilityToGet.Cap = CAP_DEVICEEVENT;
    DSM_Entry(&myApp, &dsource, DG_CONTROL, DAT_CAPABILITY, MSG_QUERYSUPPORT, (TW_MEMREF)&capabilityToGet);
    int code = TWAIN_GetResultCode();
    int conCode = conditionCode();

    ‘code’ becomes 1 and conCode is 0.

    Any ideas? I have seen another application do this automatically.

    Thanks.

    June 5, 2010 at 3:26 am #25272 Reply
    twainuser123
    Participant
    • Topics - 9
    • Replies - 28
    • Total Posts - 37

    Nevermind, it is waking up from standby automatically now.
    I am confused, but okay…

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: "Waking up" scanner from power save?
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.