2014-04-02 19:13:15 -04:00
|
|
|
|
using NTwain.Data;
|
2014-04-02 19:01:21 -04:00
|
|
|
|
using NTwain.Values;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace NTwain.Triplets
|
|
|
|
|
{
|
2014-04-04 22:19:16 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents <see cref="DataArgumentType.StatusUtf8"/>.
|
|
|
|
|
/// </summary>
|
2014-04-02 19:01:21 -04:00
|
|
|
|
public sealed class StatusUtf8 : OpBase
|
|
|
|
|
{
|
2014-04-05 16:48:28 -04:00
|
|
|
|
internal StatusUtf8(ITwainStateInternal session) : base(session) { }
|
2014-04-02 19:01:21 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Translate the contents of a TW_STATUS structure received from a Source into a localized UTF-8
|
|
|
|
|
/// encoded string.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="status">The status.</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public ReturnCode Get(TWStatusUtf8 status)
|
|
|
|
|
{
|
|
|
|
|
Session.VerifyState(3, 7, DataGroups.Control, DataArgumentType.StatusUtf8, Message.Get);
|
2014-04-16 06:53:05 -04:00
|
|
|
|
return Dsm.DsmEntry(Session.AppId, null, Message.Get, status);
|
2014-04-02 19:01:21 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|