mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-01 10:54:08 +08:00
Updated internal pinvoke names.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.CieColor, Message.Get);
|
||||
cieColor = new TWCieColor();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, cieColor);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, cieColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(7, 7, DataGroups.Image, DataArgumentType.ExtImageInfo, Message.Get);
|
||||
info = new TWExtImageInfo();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, info);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, info);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.Filter, Message.Get);
|
||||
filter = new TWFilter();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, filter);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -34,7 +34,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.Filter, Message.GetDefault);
|
||||
filter = new TWFilter();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.GetDefault, filter);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.GetDefault, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -46,7 +46,7 @@ namespace NTwain.Triplets
|
||||
public ReturnCode Set(TWFilter filter)
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.Filter, Message.Set);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, filter);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, filter);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -58,7 +58,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.Filter, Message.Reset);
|
||||
filter = new TWFilter();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, filter);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, filter);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.GrayResponse, Message.Reset);
|
||||
response = new TWGrayResponse();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, response);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -33,7 +33,7 @@ namespace NTwain.Triplets
|
||||
public ReturnCode Set(TWGrayResponse response)
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.GrayResponse, Message.Set);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, response);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, response);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.IccProfile, Message.Get);
|
||||
profile = new TWMemory();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, DataArgumentType.IccProfile, Message.Get, ref profile);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, DataArgumentType.IccProfile, Message.Get, ref profile);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(6, 6, DataGroups.Image, DataArgumentType.ImageFileXfer, Message.Get);
|
||||
IntPtr z = IntPtr.Zero;
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, DataGroups.Image, DataArgumentType.ImageFileXfer, Message.Get, ref z);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, DataGroups.Image, DataArgumentType.ImageFileXfer, Message.Get, ref z);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,7 +15,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.ImageInfo, Message.Get);
|
||||
info = new TWImageInfo();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, info);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, info);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -15,27 +15,27 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.ImageLayout, Message.Get);
|
||||
layout = new TWImageLayout();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, layout);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, layout);
|
||||
}
|
||||
|
||||
public ReturnCode GetDefault(out TWImageLayout layout)
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.ImageLayout, Message.GetDefault);
|
||||
layout = new TWImageLayout();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.GetDefault, layout);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.GetDefault, layout);
|
||||
}
|
||||
|
||||
public ReturnCode Reset(out TWImageLayout layout)
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.ImageLayout, Message.Reset);
|
||||
layout = new TWImageLayout();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, layout);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, layout);
|
||||
}
|
||||
|
||||
public ReturnCode Set(TWImageLayout layout)
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.ImageLayout, Message.Set);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, layout);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, layout);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ namespace NTwain.Triplets
|
||||
public ReturnCode Get(TWImageMemXfer xfer)
|
||||
{
|
||||
Session.VerifyState(6, 6, DataGroups.Image, DataArgumentType.ImageMemFileXfer, Message.Get);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, xfer);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, xfer);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace NTwain.Triplets
|
||||
public ReturnCode Get(TWImageMemXfer xfer)
|
||||
{
|
||||
Session.VerifyState(6, 7, DataGroups.Image, DataArgumentType.ImageMemXfer, Message.Get);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, xfer);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, xfer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace NTwain.Triplets
|
||||
public ReturnCode Get(ref IntPtr handle)
|
||||
{
|
||||
Session.VerifyState(6, 6, DataGroups.Image, DataArgumentType.ImageNativeXfer, Message.Get);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, DataGroups.Image, DataArgumentType.ImageNativeXfer, Message.Get, ref handle);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, DataGroups.Image, DataArgumentType.ImageNativeXfer, Message.Get, ref handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.JpegCompression, Message.Get);
|
||||
compression = new TWJpegCompression();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, compression);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, compression);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -34,7 +34,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.JpegCompression, Message.GetDefault);
|
||||
compression = new TWJpegCompression();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.GetDefault, compression);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.GetDefault, compression);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -46,7 +46,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.JpegCompression, Message.Reset);
|
||||
compression = new TWJpegCompression();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, compression);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, compression);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -59,7 +59,7 @@ namespace NTwain.Triplets
|
||||
public ReturnCode Set(TWJpegCompression compression)
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.JpegCompression, Message.Set);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, compression);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, compression);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.Palette8, Message.Get);
|
||||
palette = new TWPalette8();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, palette);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, palette);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -32,7 +32,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 6, DataGroups.Image, DataArgumentType.Palette8, Message.GetDefault);
|
||||
palette = new TWPalette8();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.GetDefault, palette);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.GetDefault, palette);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -45,7 +45,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.Palette8, Message.Reset);
|
||||
palette = new TWPalette8();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, palette);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, palette);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -59,7 +59,7 @@ namespace NTwain.Triplets
|
||||
public ReturnCode Set(TWPalette8 palette)
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.Palette8, Message.Set);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, palette);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, palette);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ namespace NTwain.Triplets
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.RgbResponse, Message.Reset);
|
||||
response = new TWRgbResponse();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, response);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Reset, response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -34,7 +34,7 @@ namespace NTwain.Triplets
|
||||
public ReturnCode Set(TWRgbResponse response)
|
||||
{
|
||||
Session.VerifyState(4, 4, DataGroups.Image, DataArgumentType.RgbResponse, Message.Set);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, response);
|
||||
return Dsm.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Set, response);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user