ntwain/NTwain/Triplets/DGControl/DGControl.EntryPoint.cs

24 lines
734 B
C#
Raw Normal View History

2014-04-03 07:13:15 +08:00
using NTwain.Data;
2014-04-21 04:57:38 +08:00
using NTwain.Internals;
2014-04-03 07:01:21 +08:00
namespace NTwain.Triplets
{
2014-04-05 10:19:16 +08:00
/// <summary>
/// Represents <see cref="DataArgumentType.EntryPoint"/>.
/// </summary>
2014-04-03 07:01:21 +08:00
sealed class EntryPoint : OpBase
{
2014-04-06 04:48:28 +08:00
internal EntryPoint(ITwainStateInternal session) : base(session) { }
2014-04-03 07:01:21 +08: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-04-16 18:53:05 +08:00
return Dsm.DsmEntry(Session.AppId, Session.SourceId, Message.Get, entryPoint);
2014-04-03 07:01:21 +08:00
}
}
}