Added attempt on calling StatusUtf8. Doesn't seem to work.

This commit is contained in:
Eugene Wang
2018-11-16 22:29:57 -05:00
parent 61a2c907bd
commit a73df1320f
6 changed files with 79 additions and 91 deletions

View File

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