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

how to delete all images from digital camera with twain?

Forums › TWAIN Classic › how to delete all images from digital camera with twain?

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 5 months ago by carekee.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 14, 2010 at 1:16 am #22632 Reply
    carekee
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    i want to delete all images from camera with twain,how to do it?

    September 14, 2010 at 6:58 pm #25331 Reply
    Kaij
    Participant
    • Topics - 9
    • Replies - 132
    • Total Posts - 141

    Is this question related to existing TWAIN drivers or a TWAIN driver you are going to develop?

    Best regards,
    Kaij

    September 15, 2010 at 1:29 am #25332 Reply
    carekee
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    thank for Kaij!
    I want to use “DG_CONTROL / DAT_FILESYSTEM / MSG_DELETE” to delete images from camera, and i have connected to camera,but i cannot use ” DAT_FILESYSTEM ” triplets.Can you help me and give me same code to achieve it?

    September 15, 2010 at 2:05 am #25333 Reply
    carekee
    Participant
    • Topics - 1
    • Replies - 2
    • Total Posts - 3

    This is my code, i am sure you can add some code to achieve my function of delete images from camera.
    ////////////////////////////////
    inline static TW_UINT16 DsmEntry(pTW_IDENTITY ptwidDest,
    TW_UINT32 twuGroup, TW_UINT16 twuData, TW_UINT16 twuMsg, TW_MEMREF ptwmData)
    {

    return m_dpDsmEntry(&m_twidOrigin, ptwidDest, twuGroup, twuData, twuMsg, ptwmData);
    }
    ////////////////////////////////
    m_dpDsmEntry = (DSMENTRYPROC) GetProcAddress(m_hTwain, “DSM_Entry”);
    if (m_dpDsmEntry)
    {
    // open source manager
    twuResult = DsmEntry(NULL, DG_CONTROL, DAT_PARENT, MSG_OPENDSM, &m_hParent);
    if (twuResult == TWRC_SUCCESS)
    {
    // select source
    twuResult = DsmEntry(NULL, DG_CONTROL, DAT_IDENTITY, MSG_GETDEFAULT, &m_twidSource);
    if (twuResult == TWRC_SUCCESS)
    {
    // open source
    twuResult = DsmEntry(NULL, DG_CONTROL, DAT_IDENTITY, MSG_OPENDS, &m_twidSource);
    if (twuResult == TWRC_SUCCESS)
    {
    //////////////////////////there i want to delete all images from camera,you can add code
    ////////////there i want copy images from camera to disk(e.g D:\TT)
    ////////////then delete images from camera

    // set capability
    TW_ONEVALUE twovValue;
    TW_CAPABILITY twcCap;
    twcCap.Cap = ICAP_FILTER;
    twcCap.ConType = TWON_ONEVALUE;
    twcCap.hContainer = &twovValue;
    twovValue.Item = TWSX_FILE;
    twovValue.ItemType = TWTY_INT16;
    twuResult = DsmEntry(&m_twidSource, DG_CONTROL, DAT_CAPABILITY, MSG_SET, &twcCap);

    ////////////////////////////////////////////there i want to delete images from camera,you can add code
    ////////////there i want copy images from camera to disk(e.g D:\TT)
    ////////////then delete images from camera

    }
    // show ui
    twuResult = ShowUI();
    }
    }
    }
    if (twuResult != TWRC_SUCCESS)
    {
    Close();
    }

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: how to delete all images from digital camera with twain?
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

  • could not open the twain source. Make sure there is a valid source for your sca
  • Changing TWAIN driver defaults
  • Scanner starts transfer when console gets closed (CITRIX)
  • Kodak RFS 3600
  • Didn’t save enough file scan
  • 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.