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

Can’t get MSG_PROCESSEVENT param in Kodak-i1120 scanner

Forums › TWAIN Classic › Can’t get MSG_PROCESSEVENT param in Kodak-i1120 scanner

  • This topic has 1 reply, 1 voice, and was last updated 7 years, 6 months ago by YogaV.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 18, 2013 at 3:20 pm #22866 Reply
    YogaV
    Participant
    • Topics - 5
    • Replies - 4
    • Total Posts - 9

    I have tried to create app that should scan documents from both FUJITSU and Kodak-i1120 scanner. I could scanned the document using FUJITSU scanner and get the scanner image in memory trans mode.. everything has fine. I m using GetMessage() winapi function to get scanner message in order to stimulate the MSG_PROCESSEVENT (msg param), but in Kodak scanner I cannot stimulate the msg param for ‘MSG_PROCESSEVENT’ since GetMessage function does not return msg param. I have debugged my code once I reach the GetMessage() function the control flow will divert from my code block and kodak scanner scan the document automatically. So that I could not get the image handler at TWRC_XFERDONE stat.
    Please suggest your idea.

    if ((bRet=GetMessage(&msg, NULL, 0, 0))!=0){ //–> here my problem is happening.
    if(ProcessMessage(msg)){
    //do the required work….
    }
    }

    BOOL CTwainAPI::ProcessMessage(MSG msg)
    {
    if(SourceEnabled())
    {
    //call winapi getmessage function and set the msg to tw_event.
    TW_EVENT twEvent;
    twEvent.pEvent = (TW_MEMREF)&msg;
    twEvent.TWMessage = MSG_NULL;
    CallTwainProc(&m_AppId,&m_Source,DG_CONTROL,DAT_EVENT,MSG_PROCESSEVENT,(TW_MEMREF)&twEvent);
    if(GetRC() != TWRC_NOTDSEVENT)
    {
    TranslateMessage(twEvent);
    return TRUE;
    }
    return FALSE;
    }
    return FALSE;
    }

    Thanks,
    Yoga V

    July 19, 2013 at 12:17 pm #25940 Reply
    YogaV
    Participant
    • Topics - 5
    • Replies - 4
    • Total Posts - 9

    I found out the problem. 🙂 I have used the boost::thread for multi thread processing.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Can’t get MSG_PROCESSEVENT param in Kodak-i1120 scanner
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

  • Girls of Desire: All babes in one place, crazy, art
  • 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

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.