mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-19 18:27:56 +08:00
Some CA updates.
This commit is contained in:
@@ -35,7 +35,7 @@ namespace NTwain
|
|||||||
/// The memory data.
|
/// The memory data.
|
||||||
/// </value>
|
/// </value>
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
|
||||||
public byte[] MemData { get; internal set; }
|
public byte[] MemoryData { get; internal set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the final image information if applicable.
|
/// Gets the final image information if applicable.
|
||||||
|
@@ -12,7 +12,7 @@ namespace NTwain.Internals
|
|||||||
/// The MSG structure in Windows for TWAIN use.
|
/// The MSG structure in Windows for TWAIN use.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct MESSAGE
|
struct MESSAGE
|
||||||
{
|
{
|
||||||
public MESSAGE(IntPtr hwnd, int message, IntPtr wParam, IntPtr lParam)
|
public MESSAGE(IntPtr hwnd, int message, IntPtr wParam, IntPtr lParam)
|
||||||
{
|
{
|
||||||
|
@@ -441,7 +441,7 @@ namespace NTwain.Internals
|
|||||||
session.SafeSyncableRaiseEvent(new DataTransferredEventArgs
|
session.SafeSyncableRaiseEvent(new DataTransferredEventArgs
|
||||||
{
|
{
|
||||||
NativeData = dataPtr,
|
NativeData = dataPtr,
|
||||||
MemData = dataArray,
|
MemoryData = dataArray,
|
||||||
FileDataPath = filePath,
|
FileDataPath = filePath,
|
||||||
ImageInfo = imgInfo,
|
ImageInfo = imgInfo,
|
||||||
//ExImageInfo = extInfo
|
//ExImageInfo = extInfo
|
||||||
|
@@ -63,11 +63,11 @@ namespace NTwain
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="WindowsFormsMessageLoopHook"/> class.
|
/// Initializes a new instance of the <see cref="WindowsFormsMessageLoopHook"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="hwnd">The handle to the app window.</param>
|
/// <param name="windowHandle">The handle to the app window.</param>
|
||||||
/// <exception cref="System.ArgumentException">A valid window handle is required.</exception>
|
/// <exception cref="System.ArgumentException">A valid window handle is required.</exception>
|
||||||
public WindowsFormsMessageLoopHook(IntPtr hwnd)
|
public WindowsFormsMessageLoopHook(IntPtr windowHandle)
|
||||||
{
|
{
|
||||||
if (hwnd == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
|
if (windowHandle == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
|
||||||
|
|
||||||
if (!System.Windows.Forms.Application.MessageLoop)
|
if (!System.Windows.Forms.Application.MessageLoop)
|
||||||
{
|
{
|
||||||
@@ -78,7 +78,7 @@ namespace NTwain
|
|||||||
{
|
{
|
||||||
ThrowInvalidOp();
|
ThrowInvalidOp();
|
||||||
}
|
}
|
||||||
Handle = hwnd;
|
Handle = windowHandle;
|
||||||
SyncContext = sync;
|
SyncContext = sync;
|
||||||
}
|
}
|
||||||
internal override string InvalidMessage
|
internal override string InvalidMessage
|
||||||
@@ -133,11 +133,11 @@ namespace NTwain
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="WpfMessageLoopHook"/> class.
|
/// Initializes a new instance of the <see cref="WpfMessageLoopHook"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="hwnd">The handle to the app window.</param>
|
/// <param name="windowHandle">The handle to the app window.</param>
|
||||||
/// <exception cref="System.ArgumentException">A valid window handle is required.</exception>
|
/// <exception cref="System.ArgumentException">A valid window handle is required.</exception>
|
||||||
public WpfMessageLoopHook(IntPtr hwnd)
|
public WpfMessageLoopHook(IntPtr windowHandle)
|
||||||
{
|
{
|
||||||
if (hwnd == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
|
if (windowHandle == IntPtr.Zero) { throw new ArgumentException("A valid window handle is required."); }
|
||||||
|
|
||||||
if (System.Windows.Application.Current == null ||
|
if (System.Windows.Application.Current == null ||
|
||||||
!System.Windows.Application.Current.Dispatcher.CheckAccess())
|
!System.Windows.Application.Current.Dispatcher.CheckAccess())
|
||||||
@@ -149,7 +149,7 @@ namespace NTwain
|
|||||||
{
|
{
|
||||||
ThrowInvalidOp();
|
ThrowInvalidOp();
|
||||||
}
|
}
|
||||||
Handle = hwnd;
|
Handle = windowHandle;
|
||||||
SyncContext = sync;
|
SyncContext = sync;
|
||||||
}
|
}
|
||||||
internal override string InvalidMessage
|
internal override string InvalidMessage
|
||||||
|
@@ -16,6 +16,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode Get(ushort customDAT, TWCapability capability)
|
public ReturnCode Get(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.Get);
|
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.Get);
|
||||||
@@ -28,6 +29,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode GetCurrent(ushort customDAT, TWCapability capability)
|
public ReturnCode GetCurrent(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.GetCurrent);
|
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.GetCurrent);
|
||||||
@@ -40,6 +42,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode GetDefault(ushort customDAT, TWCapability capability)
|
public ReturnCode GetDefault(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.GetDefault);
|
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.GetDefault);
|
||||||
@@ -53,6 +56,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode GetHelp(ushort customDAT, TWCapability capability)
|
public ReturnCode GetHelp(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.GetHelp);
|
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.GetHelp);
|
||||||
@@ -66,6 +70,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode GetLabel(ushort customDAT, TWCapability capability)
|
public ReturnCode GetLabel(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.GetLabel);
|
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.GetLabel);
|
||||||
@@ -79,6 +84,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode GetLabelEnum(ushort customDAT, TWCapability capability)
|
public ReturnCode GetLabelEnum(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.GetLabelEnum);
|
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.GetLabelEnum);
|
||||||
@@ -91,6 +97,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode QuerySupport(ushort customDAT, TWCapability capability)
|
public ReturnCode QuerySupport(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.QuerySupport);
|
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.QuerySupport);
|
||||||
@@ -104,6 +111,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode Reset(ushort customDAT, TWCapability capability)
|
public ReturnCode Reset(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.Reset);
|
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.Reset);
|
||||||
@@ -117,6 +125,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode ResetAll(ushort customDAT, TWCapability capability)
|
public ReturnCode ResetAll(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.ResetAll);
|
Session.VerifyState(4, 4, DataGroups.Control, (DataArgumentType)customDAT, Message.ResetAll);
|
||||||
@@ -133,6 +142,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode Set(ushort customDAT, TWCapability capability)
|
public ReturnCode Set(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 6, DataGroups.Control, (DataArgumentType)customDAT, Message.Set);
|
Session.VerifyState(4, 6, DataGroups.Control, (DataArgumentType)customDAT, Message.Set);
|
||||||
@@ -148,6 +158,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
/// <param name="customDAT">The custom DAT_* value from manufacturer.</param>
|
||||||
/// <param name="capability">The capability.</param>
|
/// <param name="capability">The capability.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DAT")]
|
||||||
public ReturnCode SetConstraint(ushort customDAT, TWCapability capability)
|
public ReturnCode SetConstraint(ushort customDAT, TWCapability capability)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.SetConstraint);
|
Session.VerifyState(4, 7, DataGroups.Control, (DataArgumentType)customDAT, Message.SetConstraint);
|
||||||
|
@@ -16,7 +16,7 @@ namespace NTwain.Triplets
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="setupFileXfer">The setup file xfer.</param>
|
/// <param name="setupFileXfer">The setup file xfer.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||||
public ReturnCode Get(out TWSetupFileXfer setupFileXfer)
|
public ReturnCode Get(out TWSetupFileXfer setupFileXfer)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupFileXfer, Message.Get);
|
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupFileXfer, Message.Get);
|
||||||
@@ -29,7 +29,7 @@ namespace NTwain.Triplets
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="setupFileXfer">The setup file xfer.</param>
|
/// <param name="setupFileXfer">The setup file xfer.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||||
public ReturnCode GetDefault(out TWSetupFileXfer setupFileXfer)
|
public ReturnCode GetDefault(out TWSetupFileXfer setupFileXfer)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupFileXfer, Message.GetDefault);
|
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupFileXfer, Message.GetDefault);
|
||||||
@@ -43,7 +43,7 @@ namespace NTwain.Triplets
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="setupFileXfer">The setup file xfer.</param>
|
/// <param name="setupFileXfer">The setup file xfer.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||||
public ReturnCode Reset(out TWSetupFileXfer setupFileXfer)
|
public ReturnCode Reset(out TWSetupFileXfer setupFileXfer)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 4, DataGroups.Control, DataArgumentType.SetupFileXfer, Message.Reset);
|
Session.VerifyState(4, 4, DataGroups.Control, DataArgumentType.SetupFileXfer, Message.Reset);
|
||||||
@@ -60,6 +60,7 @@ namespace NTwain.Triplets
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="setupFileXfer">The setup file xfer.</param>
|
/// <param name="setupFileXfer">The setup file xfer.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer")]
|
||||||
public ReturnCode Set(TWSetupFileXfer setupFileXfer)
|
public ReturnCode Set(TWSetupFileXfer setupFileXfer)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupFileXfer, Message.Set);
|
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupFileXfer, Message.Set);
|
||||||
|
@@ -6,7 +6,7 @@ namespace NTwain.Triplets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents <see cref="DataArgumentType.SetupMemXfer"/>.
|
/// Represents <see cref="DataArgumentType.SetupMemXfer"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Mem")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Mem")]
|
||||||
public sealed class SetupMemXfer : OpBase
|
public sealed class SetupMemXfer : OpBase
|
||||||
{
|
{
|
||||||
internal SetupMemXfer(ITwainSessionInternal session) : base(session) { }
|
internal SetupMemXfer(ITwainSessionInternal session) : base(session) { }
|
||||||
@@ -16,7 +16,7 @@ namespace NTwain.Triplets
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="setupMemXfer">The setup mem xfer.</param>
|
/// <param name="setupMemXfer">The setup mem xfer.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Mem"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||||
public ReturnCode Get(out TWSetupMemXfer setupMemXfer)
|
public ReturnCode Get(out TWSetupMemXfer setupMemXfer)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupMemXfer, Message.Get);
|
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.SetupMemXfer, Message.Get);
|
||||||
|
@@ -6,6 +6,7 @@ namespace NTwain.Triplets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents <see cref="DataArgumentType.XferGroup"/>.
|
/// Represents <see cref="DataArgumentType.XferGroup"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Xfer")]
|
||||||
public sealed class XferGroup : OpBase
|
public sealed class XferGroup : OpBase
|
||||||
{
|
{
|
||||||
internal XferGroup(ITwainSessionInternal session) : base(session) { }
|
internal XferGroup(ITwainSessionInternal session) : base(session) { }
|
||||||
|
@@ -28,6 +28,7 @@ namespace NTwain.Triplets
|
|||||||
/// <param name="message">The message.</param>
|
/// <param name="message">The message.</param>
|
||||||
/// <param name="data">The data.</param>
|
/// <param name="data">The data.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "3#"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "dat"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Dsm")]
|
||||||
public ReturnCode DsmEntry(
|
public ReturnCode DsmEntry(
|
||||||
DataGroups group,
|
DataGroups group,
|
||||||
DataArgumentType dat,
|
DataArgumentType dat,
|
||||||
|
@@ -6,6 +6,7 @@ namespace NTwain.Triplets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents <see cref="DataArgumentType.CieColor"/>.
|
/// Represents <see cref="DataArgumentType.CieColor"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Cie")]
|
||||||
public sealed class CieColor : OpBase
|
public sealed class CieColor : OpBase
|
||||||
{
|
{
|
||||||
internal CieColor(ITwainSessionInternal session) : base(session) { }
|
internal CieColor(ITwainSessionInternal session) : base(session) { }
|
||||||
@@ -16,7 +17,7 @@ namespace NTwain.Triplets
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="cieColor">Color data.</param>
|
/// <param name="cieColor">Color data.</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "cie"), System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId = "0#")]
|
||||||
public ReturnCode Get(out TWCieColor cieColor)
|
public ReturnCode Get(out TWCieColor cieColor)
|
||||||
{
|
{
|
||||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.CieColor, Message.Get);
|
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.CieColor, Message.Get);
|
||||||
|
@@ -6,6 +6,7 @@ namespace NTwain.Triplets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents <see cref="DataArgumentType.IccProfile"/>.
|
/// Represents <see cref="DataArgumentType.IccProfile"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Icc")]
|
||||||
public sealed class IccProfile : OpBase
|
public sealed class IccProfile : OpBase
|
||||||
{
|
{
|
||||||
internal IccProfile(ITwainSessionInternal session) : base(session) { }
|
internal IccProfile(ITwainSessionInternal session) : base(session) { }
|
||||||
|
@@ -6,6 +6,7 @@ namespace NTwain.Triplets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents <see cref="DataArgumentType.RgbResponse"/>.
|
/// Represents <see cref="DataArgumentType.RgbResponse"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Rgb")]
|
||||||
public sealed class RgbResponse : OpBase
|
public sealed class RgbResponse : OpBase
|
||||||
{
|
{
|
||||||
internal RgbResponse(ITwainSessionInternal session) : base(session) { }
|
internal RgbResponse(ITwainSessionInternal session) : base(session) { }
|
||||||
|
@@ -19,6 +19,7 @@ namespace NTwain.Triplets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the operations defined for DAT_CIECOLOR.
|
/// Gets the operations defined for DAT_CIECOLOR.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Cie")]
|
||||||
public CieColor CieColor
|
public CieColor CieColor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -73,6 +74,7 @@ namespace NTwain.Triplets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the operations defined for DAT_ICCPROFILE.
|
/// Gets the operations defined for DAT_ICCPROFILE.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Icc")]
|
||||||
public IccProfile IccProfile
|
public IccProfile IccProfile
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -175,6 +177,7 @@ namespace NTwain.Triplets
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the operations defined for DAT_RGBRESPONSE.
|
/// Gets the operations defined for DAT_RGBRESPONSE.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Rgb")]
|
||||||
public RgbResponse RgbResponse
|
public RgbResponse RgbResponse
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
Reference in New Issue
Block a user