using NTwain.Data;
using NTwain.Internals;
using System;
namespace NTwain.Triplets
{
///
/// Represents .
///
sealed class ImageFileXfer : OpBase
{
internal ImageFileXfer(ITwainStateInternal session) : base(session) { }
///
/// This operation is used to initiate the transfer of an image from the Source to the application via
/// the disk-file transfer mechanism. It causes the transfer to begin.
///
///
public ReturnCode Get()
{
Session.VerifyState(6, 6, DataGroups.Image, DataArgumentType.ImageFileXfer, Message.Get);
IntPtr z = IntPtr.Zero;
return Dsm.DsmEntry(Session.AppId, Session.SourceId, DataGroups.Image, DataArgumentType.ImageFileXfer, Message.Get, ref z);
}
}
}