ntwain/NTwain/Triplets/DGControl/DGControl.EntryPoint.cs
2014-04-20 16:57:38 -04:00

24 lines
734 B
C#

using NTwain.Data;
using NTwain.Internals;
namespace NTwain.Triplets
{
/// <summary>
/// Represents <see cref="DataArgumentType.EntryPoint"/>.
/// </summary>
sealed class EntryPoint : OpBase
{
internal EntryPoint(ITwainStateInternal session) : base(session) { }
/// <summary>
/// Gets the function entry points for twain 2.0 or higher.
/// </summary>
/// <param name="entryPoint">The entry point.</param>
/// <returns></returns>
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);
}
}
}