mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-02 04:17:08 +08:00
Cleared some todos.
This commit is contained in:
@@ -17,7 +17,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns></returns>
|
||||
public ReturnCode Get(ref uint value)
|
||||
public ReturnCode Get(ref DataGroups value)
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Control, DataArgumentType.XferGroup, Message.Get);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, DataGroups.Control, DataArgumentType.XferGroup, Message.Get, ref value);
|
||||
@@ -30,7 +30,7 @@ namespace NTwain.Triplets
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns></returns>
|
||||
public ReturnCode Set(uint value)
|
||||
public ReturnCode Set(DataGroups value)
|
||||
{
|
||||
Session.VerifyState(6, 6, DataGroups.Control, DataArgumentType.XferGroup, Message.Set);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, DataGroups.Control, DataArgumentType.XferGroup, Message.Set, ref value);
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace NTwain.Triplets
|
||||
// DataGroups dg,
|
||||
// DataArgumentType dat,
|
||||
// Message msg,
|
||||
// ref uint data);
|
||||
// ref DataGroups data);
|
||||
|
||||
// [DllImport("/usr/local/lib/libtwaindsm.so", EntryPoint = "#1")]
|
||||
// public static extern ReturnCode DsmEntryLinux(
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace NTwain.Triplets
|
||||
DataGroups dg,
|
||||
DataArgumentType dat,
|
||||
Message msg,
|
||||
ref uint data);
|
||||
ref DataGroups data);
|
||||
|
||||
[DllImport("twain_32", EntryPoint = "#1")]
|
||||
public static extern ReturnCode DsmEntry32(
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace NTwain.Triplets
|
||||
DataGroups dg,
|
||||
DataArgumentType dat,
|
||||
Message msg,
|
||||
ref uint data);
|
||||
ref DataGroups data);
|
||||
|
||||
[DllImport("twaindsm", EntryPoint = "#1")]
|
||||
public static extern ReturnCode DsmEntry64(
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace NTwain.Triplets
|
||||
DataGroups dg,
|
||||
DataArgumentType dat,
|
||||
Message msg,
|
||||
ref uint data)
|
||||
ref DataGroups data)
|
||||
{
|
||||
if (CanUseTwainDSM) { return NativeMethods.DsmEntry64(origin, destination, dg, dat, msg, ref data); }
|
||||
else { return NativeMethods.DsmEntry32(origin, destination, dg, dat, msg, ref data); }
|
||||
|
||||
Reference in New Issue
Block a user