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

25 lines
754 B
C#
Raw Normal View History

2014-04-03 07:13:15 +08:00
using NTwain.Data;
2014-04-03 07:01:21 +08:00
using NTwain.Values;
using System;
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-06 06:33:21 +08:00
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, entryPoint);
2014-04-03 07:01:21 +08:00
}
}
}