mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-02 04:17:08 +08:00
Updated string read and fixed sample.
This commit is contained in:
@@ -11,10 +11,11 @@ namespace NTwain.Triplets
|
||||
{
|
||||
internal ExtImageInfo(ITwainStateInternal session) : base(session) { }
|
||||
|
||||
public ReturnCode Get(TWExtImageInfo info)
|
||||
public ReturnCode Get(out TWExtImageInfo info)
|
||||
{
|
||||
Session.VerifyState(7, 7, DataGroups.Image, DataArgumentType.ExtImageInfo, Message.Get);
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, info);
|
||||
info = new TWExtImageInfo();
|
||||
return PInvoke.DsmEntry(Session.GetAppId(), Session.SourceId, Message.Get, info);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,10 @@ namespace NTwain.Triplets
|
||||
File.Exists(path);
|
||||
}
|
||||
|
||||
static readonly bool IsWin = Environment.OSVersion.Platform == PlatformID.Win32NT;
|
||||
static readonly bool IsOSX = Environment.OSVersion.Platform == PlatformID.MacOSX;
|
||||
static readonly bool IsLinux = Environment.OSVersion.Platform == PlatformID.Unix;
|
||||
|
||||
// define sig for each different data type since "object" doesn't work
|
||||
|
||||
#region wrapped calls
|
||||
|
||||
Reference in New Issue
Block a user