ntwain/NTwain/Triplets/DGControl/DGControl.StatusUtf8.cs

24 lines
732 B
C#
Raw Normal View History

2014-04-03 07:13:15 +08:00
using NTwain.Data;
2014-04-21 04:57:38 +08:00
using NTwain.Internals;
2014-04-03 07:01:21 +08:00
namespace NTwain.Triplets
{
2014-04-05 10:19:16 +08:00
/// <summary>
/// Represents <see cref="DataArgumentType.StatusUtf8"/>.
/// </summary>
2014-04-03 07:01:21 +08:00
public sealed class StatusUtf8 : OpBase
{
2014-04-06 04:48:28 +08:00
internal StatusUtf8(ITwainStateInternal session) : base(session) { }
2014-04-03 07:01:21 +08: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 18:53:05 +08:00
return Dsm.DsmEntry(Session.AppId, null, Message.Get, status);
2014-04-03 07:01:21 +08:00
}
}
}