mirror of
https://github.com/soukoku/ntwain.git
synced 2026-01-26 13:39:47 +08:00
Moved triplet success logic back to twainsession to reduce dependencies and identity copying in windows.
This commit is contained in:
@@ -18,13 +18,13 @@ namespace SampleConsole
|
||||
twain.StateChanged += Twain_StateChanged;
|
||||
|
||||
var hwnd = IntPtr.Zero; // required for windows
|
||||
var rc = twain.DGControl.Parent.OpenDSM(ref hwnd);
|
||||
var rc = twain.OpenDSM(hwnd);
|
||||
Debug.WriteLine($"OpenDSM={rc}");
|
||||
|
||||
if (rc == STS.SUCCESS)
|
||||
{
|
||||
Debug.WriteLine($"CloseDSM={rc}");
|
||||
rc = twain.DGControl.Parent.CloseDSM(ref hwnd);
|
||||
rc = twain.CloseDSM();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user