2014-04-02 19:13:15 -04:00
|
|
|
|
using NTwain.Data;
|
2014-04-20 16:57:38 -04:00
|
|
|
|
using NTwain.Internals;
|
2014-04-02 19:01:21 -04:00
|
|
|
|
|
|
|
|
|
|
namespace NTwain.Triplets
|
|
|
|
|
|
{
|
2014-04-04 22:19:16 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents <see cref="DataArgumentType.EntryPoint"/>.
|
|
|
|
|
|
/// </summary>
|
2014-09-15 07:24:13 -04:00
|
|
|
|
sealed class EntryPoint : TripletBase
|
2014-04-02 19:01:21 -04:00
|
|
|
|
{
|
2014-04-20 18:42:51 -04:00
|
|
|
|
internal EntryPoint(ITwainSessionInternal session) : base(session) { }
|
2014-04-02 19:01:21 -04:00
|
|
|
|
/// <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();
|
2014-05-19 20:48:21 -04:00
|
|
|
|
return Dsm.DsmEntry(Session.AppId, Message.Get, entryPoint);
|
2014-04-02 19:01:21 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|