Files
ntwain/NTwain/Triplets/DGControl/DGControl.PassThru.cs

24 lines
859 B
C#
Raw Normal View History

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.PassThru"/>.
/// </summary>
public sealed class PassThru : TripletBase
2014-04-02 19:01:21 -04:00
{
internal PassThru(ITwainSessionInternal session) : base(session) { }
2014-04-02 19:01:21 -04:00
/// <summary>
/// PASSTHRU is intended for the use of Source writers writing diagnostic applications. It allows
/// raw communication with the currently selected device in the Source.
/// </summary>
/// <param name="sourcePassThru">The source pass thru.</param>
/// <returns></returns>
public ReturnCode PassThrough(TWPassThru sourcePassThru)
{
Session.VerifyState(4, 7, DataGroups.Control, DataArgumentType.PassThru, Message.PassThru);
2014-05-20 07:25:57 -04:00
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.PassThru, sourcePassThru);
2014-04-02 19:01:21 -04:00
}
}
}