using NTwain.Data;
using NTwain.Internals;
namespace NTwain.Triplets
{
///
/// Represents .
///
sealed class EntryPoint : OpBase
{
internal EntryPoint(ITwainStateInternal session) : base(session) { }
///
/// Gets the function entry points for twain 2.0 or higher.
///
/// The entry point.
///
public ReturnCode Get(out TWEntryPoint entryPoint)
{
Session.VerifyState(3, 3, DataGroups.Control, DataArgumentType.EntryPoint, Message.Get);
entryPoint = new TWEntryPoint();
return Dsm.DsmEntry(Session.AppId, Session.SourceId, Message.Get, entryPoint);
}
}
}