mirror of
https://github.com/soukoku/ntwain.git
synced 2025-11-24 16:53:24 +08:00
Added attempt on calling StatusUtf8. Doesn't seem to work.
This commit is contained in:
@@ -46,7 +46,7 @@ namespace ConsoleApp
|
||||
|
||||
if (targetSrc != null)
|
||||
{
|
||||
TestThisSource(targetSrc);
|
||||
TestThisSource(session, targetSrc);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -67,12 +67,16 @@ namespace ConsoleApp
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
||||
private static void TestThisSource(DataSource targetSrc)
|
||||
private static void TestThisSource(TwainSession session, DataSource targetSrc)
|
||||
{
|
||||
Console.WriteLine($"Testing data source {targetSrc}");
|
||||
Console.WriteLine();
|
||||
|
||||
targetSrc.Open();
|
||||
|
||||
var testStatus = session.GetStatus();
|
||||
var testMessage = session.GetLocalizedStatus(ref testStatus);
|
||||
|
||||
targetSrc.Close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user