mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-26 13:39:47 +08:00
First attempt on writing one value on cap.
This commit is contained in:
@@ -83,7 +83,18 @@ namespace Net5Console
|
||||
}
|
||||
Console.WriteLine();
|
||||
|
||||
var sts = session.StartCapture(false);
|
||||
var sts = caps.CAP_XFERCOUNT.SetOrConstraint(MSG.SET, 2);
|
||||
if (sts == STS.SUCCESS)
|
||||
{
|
||||
Console.WriteLine("Successfully set xfercount to 2.");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine($"Failed set xfercount: {sts}.");
|
||||
}
|
||||
Console.WriteLine();
|
||||
|
||||
sts = session.StartCapture(false);
|
||||
if (sts == STS.SUCCESS)
|
||||
{
|
||||
Console.Error.WriteLine("Waiting for capture to complete.");
|
||||
|
||||
Reference in New Issue
Block a user