mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Some non-functional change updates.
This commit is contained in:
@@ -23,7 +23,7 @@ namespace NTwain.Triplets
|
||||
var rc = Dsm.DsmEntry(Session.AppId, Message.CloseDS, Session.CurrentSource.Identity);
|
||||
if (rc == ReturnCode.Success)
|
||||
{
|
||||
Session.ChangeSourceId(null);
|
||||
Session.ChangeCurrentSource(null);
|
||||
Session.ChangeState(3, true);
|
||||
}
|
||||
return rc;
|
||||
@@ -79,7 +79,7 @@ namespace NTwain.Triplets
|
||||
var rc = Dsm.DsmEntry(Session.AppId, Message.OpenDS, source.Identity);
|
||||
if (rc == ReturnCode.Success)
|
||||
{
|
||||
Session.ChangeSourceId(source);
|
||||
Session.ChangeCurrentSource(source);
|
||||
Session.ChangeState(4, true);
|
||||
}
|
||||
return rc;
|
||||
|
||||
@@ -5,12 +5,11 @@ using System.Runtime.InteropServices;
|
||||
namespace NTwain.Triplets
|
||||
{
|
||||
static partial class Dsm
|
||||
{
|
||||
internal const string LINUX_DSM_PATH = "/usr/local/lib/libtwaindsm.so";
|
||||
{
|
||||
|
||||
static partial class NativeMethods
|
||||
{
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -19,7 +18,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
ref IntPtr data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -28,7 +27,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
ref DataGroups data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -37,7 +36,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWAudioInfo data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -46,7 +45,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCapability data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -55,7 +54,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCustomDSData data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -64,7 +63,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWDeviceEvent data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -73,7 +72,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCallback data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -82,7 +81,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCallback2 data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -91,7 +90,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWEntryPoint data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -100,7 +99,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWEvent data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -109,7 +108,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWFileSystem data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
IntPtr zero,
|
||||
@@ -118,7 +117,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWIdentity data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -127,7 +126,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPassThru data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -136,7 +135,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPendingXfers data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -145,7 +144,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWSetupFileXfer data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -154,7 +153,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWSetupMemXfer data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -163,7 +162,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWStatusUtf8 data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -172,7 +171,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWUserInterface data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -181,7 +180,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCieColor data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -190,7 +189,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWExtImageInfo data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -199,7 +198,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWFilter data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -208,7 +207,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWGrayResponse data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -217,7 +216,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageInfo data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -226,7 +225,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageLayout data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -235,7 +234,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageMemXfer data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -244,7 +243,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWJpegCompression data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -253,7 +252,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPalette8 data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -262,7 +261,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWRgbResponse data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -271,7 +270,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWStatus data);
|
||||
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = "DSM_Entry")]
|
||||
[DllImport(LINUX_DSM_PATH, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmLinux(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
static partial class NativeMethods
|
||||
{
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -17,7 +17,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
ref IntPtr data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -26,7 +26,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
ref DataGroups data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -35,7 +35,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWAudioInfo data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -44,7 +44,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCapability data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -53,7 +53,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCustomDSData data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -62,7 +62,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWDeviceEvent data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -71,7 +71,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCallback data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -80,7 +80,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCallback2 data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -89,7 +89,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWEntryPoint data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -98,7 +98,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWEvent data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -107,7 +107,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWFileSystem data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
IntPtr zero,
|
||||
@@ -116,7 +116,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWIdentity data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -125,7 +125,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPassThru data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -134,7 +134,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPendingXfers data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -143,7 +143,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWSetupFileXfer data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -152,7 +152,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWSetupMemXfer data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -161,7 +161,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWStatusUtf8 data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -170,7 +170,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWUserInterface data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -179,7 +179,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCieColor data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -188,7 +188,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWExtImageInfo data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -197,7 +197,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWFilter data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -206,7 +206,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWGrayResponse data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -215,7 +215,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageInfo data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -224,7 +224,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageLayout data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -233,7 +233,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageMemXfer data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -242,7 +242,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWJpegCompression data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -251,7 +251,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPalette8 data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -260,7 +260,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWRgbResponse data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -269,7 +269,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWStatus data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
[DllImport(WIN_NEW_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinNew(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
static partial class NativeMethods
|
||||
{
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -17,7 +17,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
ref IntPtr data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -26,7 +26,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
ref DataGroups data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -35,7 +35,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWAudioInfo data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -44,7 +44,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCapability data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -53,7 +53,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCustomDSData data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -62,7 +62,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWDeviceEvent data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -71,7 +71,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCallback data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -80,7 +80,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCallback2 data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -89,7 +89,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWEntryPoint data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -98,7 +98,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWEvent data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -107,7 +107,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWFileSystem data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
IntPtr zero,
|
||||
@@ -116,7 +116,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWIdentity data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -125,7 +125,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPassThru data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -134,7 +134,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPendingXfers data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -143,7 +143,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWSetupFileXfer data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -152,7 +152,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWSetupMemXfer data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -161,7 +161,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWStatusUtf8 data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -170,7 +170,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWUserInterface data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -179,7 +179,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWCieColor data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -188,7 +188,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWExtImageInfo data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -197,7 +197,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWFilter data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -206,7 +206,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWGrayResponse data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -215,7 +215,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageInfo data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -224,7 +224,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageLayout data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -233,7 +233,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWImageMemXfer data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -242,7 +242,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWJpegCompression data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -251,7 +251,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWPalette8 data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -260,7 +260,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWRgbResponse data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
@@ -269,7 +269,7 @@ namespace NTwain.Triplets
|
||||
Message msg,
|
||||
[In, Out]TWStatus data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
[DllImport(WIN_OLD_DSM_NAME, EntryPoint = DSM_ENTRY)]
|
||||
public static extern ReturnCode DsmWinOld(
|
||||
[In, Out]TWIdentity origin,
|
||||
[In, Out]TWIdentity destination,
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
static partial class Dsm
|
||||
{
|
||||
internal const string DSM_ENTRY = "DSM_Entry";
|
||||
internal const string LINUX_DSM_PATH = "/usr/local/lib/libtwaindsm.so";
|
||||
internal const string WIN_NEW_DSM_NAME = "twaindsm.dll";
|
||||
internal const string WIN_OLD_DSM_NAME = "twain_32.dll";
|
||||
|
||||
#region wrapped calls
|
||||
|
||||
public static ReturnCode DsmEntry(
|
||||
|
||||
@@ -16,7 +16,7 @@ or better explained in code:
|
||||
DGControl.Status.Get(...)
|
||||
|
||||
and that's the triplet at-a-glance. Only triplets usable by the
|
||||
application-side are explicitly defined this way.
|
||||
application-side are defined here.
|
||||
|
||||
Also some of the operations are marked as internal when there are
|
||||
better wrapped managed version available. Goal is to
|
||||
|
||||
Reference in New Issue
Block a user