title: C# TWAIN interaction
body: <p>I'm trying to set up a C# application which uses TWAIN <a href="http://www.codeproject.com/KB/dotnet/twaindotnet.aspx" rel="nofollow noreferrer">example from code project</a></p>
  
  <p>This works fine except that I need to cast <code>Form</code> to <code>IMessageFilter</code> and 
  call <code>IMessageFilter.PreFilterMessage()</code> to catch TWAIN callbacks. <br/>
  Also I need to start this filtering by calling</p>
  
  <pre><code>Application.AddMessageFilter();
  </code></pre>
  
  <p>Is there a way to do same thing in WPF Window? (To add message filter and catch TWAIN callbacks).</p>
  
  <p>Another totally high level question:
  Does anybody know about alternative C# TWAIN libraries\wrappers?</p>
  
  <p>Thank you.</p>