mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-20 02:37:57 +08:00
Test without HandleRef.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Tester
|
||||
mySyncer = new DispatcherSynchronizationContext(obj as Dispatcher);
|
||||
}
|
||||
|
||||
var rc = twain.OpenManager(default(HandleRef));
|
||||
var rc = twain.OpenManager(IntPtr.Zero);
|
||||
|
||||
if (rc == ReturnCode.Success)
|
||||
{
|
||||
@@ -64,7 +64,7 @@ namespace Tester
|
||||
// enablesource must be on the thread the sync context works on
|
||||
mySyncer.Post(blah =>
|
||||
{
|
||||
rc = twain.EnableSource(SourceEnableMode.NoUI, false, default(HandleRef), blah as SynchronizationContext);
|
||||
rc = twain.EnableSource(SourceEnableMode.NoUI, false, IntPtr.Zero, blah as SynchronizationContext);
|
||||
}, mySyncer);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user