mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-01 10:54:08 +08:00
Hid some more triplets.
This commit is contained in:
@@ -6,10 +6,10 @@ namespace NTwain.Triplets
|
||||
/// <summary>
|
||||
/// Represents <see cref="DataArgumentType.DeviceEvent"/>.
|
||||
/// </summary>
|
||||
public sealed class DeviceEvent : OpBase
|
||||
sealed class DeviceEvent : OpBase
|
||||
{
|
||||
internal DeviceEvent(ITwainSessionInternal session) : base(session) { }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||
|
||||
public ReturnCode Get(out TWDeviceEvent sourceDeviceEvent)
|
||||
{
|
||||
Session.VerifyState(4, 7, DataGroups.Control, DataArgumentType.DeviceEvent, Message.Get);
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace NTwain.Triplets
|
||||
/// <summary>
|
||||
/// Represents <see cref="DataArgumentType.StatusUtf8"/>.
|
||||
/// </summary>
|
||||
public sealed class StatusUtf8 : OpBase
|
||||
sealed class StatusUtf8 : OpBase
|
||||
{
|
||||
internal StatusUtf8(ITwainSessionInternal session) : base(session) { }
|
||||
|
||||
@@ -16,8 +16,9 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
/// <param name="status">The status.</param>
|
||||
/// <returns></returns>
|
||||
public ReturnCode GetManager(TWStatusUtf8 status)
|
||||
public ReturnCode GetManager(out TWStatusUtf8 status)
|
||||
{
|
||||
status = new TWStatusUtf8();
|
||||
Session.VerifyState(3, 7, DataGroups.Control, DataArgumentType.StatusUtf8, Message.Get);
|
||||
return Dsm.DsmEntry(Session.AppId, null, Message.Get, status);
|
||||
}
|
||||
@@ -28,8 +29,9 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
/// <param name="status">The status.</param>
|
||||
/// <returns></returns>
|
||||
public ReturnCode GetSource(TWStatusUtf8 status)
|
||||
public ReturnCode GetSource(out TWStatusUtf8 status)
|
||||
{
|
||||
status = new TWStatusUtf8();
|
||||
Session.VerifyState(3, 7, DataGroups.Control, DataArgumentType.StatusUtf8, Message.Get);
|
||||
return Dsm.DsmEntry(Session.AppId, Session.CurrentSource.Identity, Message.Get, status);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace NTwain.Triplets
|
||||
}
|
||||
}
|
||||
DeviceEvent _deviceEvent;
|
||||
public DeviceEvent DeviceEvent
|
||||
internal DeviceEvent DeviceEvent
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -163,7 +163,7 @@ namespace NTwain.Triplets
|
||||
}
|
||||
}
|
||||
StatusUtf8 _statusUtf8;
|
||||
public StatusUtf8 StatusUtf8
|
||||
internal StatusUtf8 StatusUtf8
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user