ntwain/NTwain/Triplets/DGAudio/DGAudio.AudioFileXfer.cs
2014-04-20 16:57:38 -04:00

25 lines
830 B
C#

using NTwain.Data;
using NTwain.Internals;
using System;
namespace NTwain.Triplets
{
/// <summary>
/// Represents <see cref="DataArgumentType.AudioFileXfer"/>.
/// </summary>
sealed class AudioFileXfer : OpBase
{
internal AudioFileXfer(ITwainStateInternal session) : base(session) { }
/// <summary>
/// This operation is used to initiate the transfer of audio from the Source to the application via the
/// disk-file transfer mechanism. It causes the transfer to begin.
/// </summary>
/// <returns></returns>
public ReturnCode Get()
{
Session.VerifyState(6, 6, DataGroups.Audio, DataArgumentType.AudioFileXfer, Message.Get);
IntPtr z = IntPtr.Zero;
return Dsm.DsmEntry(Session.AppId, Session.SourceId, DataGroups.Audio, DataArgumentType.AudioFileXfer, Message.Get, ref z);
}
}
}