mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 08:57:53 +08:00
25 lines
815 B
C#
25 lines
815 B
C#
using NTwain.Data;
|
||
using NTwain.Internals;
|
||
|
||
namespace NTwain.Triplets
|
||
{
|
||
/// <summary>
|
||
/// Represents <see cref="DataArgumentType.SetupMemXfer"/>.
|
||
/// </summary>
|
||
public sealed class SetupMemXfer : OpBase
|
||
{
|
||
internal SetupMemXfer(ITwainStateInternal session) : base(session) { }
|
||
/// <summary>
|
||
/// Returns the Source’s preferred, minimum, and maximum allocation sizes for transfer memory
|
||
/// buffers.
|
||
/// </summary>
|
||
/// <param name="setupMemXfer">The setup mem xfer.</param>
|
||
/// <returns></returns>
|
||
public ReturnCode Get(out TWSetupMemXfer setupMemXfer)
|
||
{
|
||
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupMemXfer, Message.Get);
|
||
setupMemXfer = new TWSetupMemXfer();
|
||
return Dsm.DsmEntry(Session.AppId, Session.SourceId, Message.Get, setupMemXfer);
|
||
}
|
||
}
|
||
} |