mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 20:59:23 +08:00
22 lines
749 B
C#
22 lines
749 B
C#
using NTwain.Data;
|
|
using NTwain.Values;
|
|
using System;
|
|
|
|
namespace NTwain.Triplets
|
|
{
|
|
public sealed class PassThru : OpBase
|
|
{
|
|
internal PassThru(TwainSession session) : base(session) { }
|
|
/// <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);
|
|
return PInvoke.DsmEntry(Session.AppId, Session.SourceId, Message.PassThru, sourcePassThru);
|
|
}
|
|
}
|
|
} |