コード例 #1
0
 private void TerminateTw()
 {
     if (tw != null)
     {
         tw.Finish();
         tw = null;
     }
     TwainMessageProcessing = false;
 }
コード例 #2
0
 private void HostWindow_Loaded(object sender, RoutedEventArgs e)
 {
     AddMessageHook();
     tw = new Twain();
     tw.Init(WindowHandle);
 }