Cleared some todos.

This commit is contained in:
soukoku
2014-04-06 16:25:48 -04:00
parent 006d33b451
commit 7e8d8f24b0
9 changed files with 55 additions and 46 deletions

View File

@@ -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);

View File

@@ -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(

View File

@@ -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(

View File

@@ -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(

View File

@@ -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); }