title: How to wait on WaitHandle without message pumping?
body: <p>I want to call <code>WaitHandle.WaitOne(TimeSpan)</code> in .NET, but I'm on the STA thread and it pumps messages while waiting.  For reasons that are beyond the scope of this question, I need to wait <em>without</em> pumping.  How can I wait for a WaitHandle to be signaled without pumping messages?</p>
  
  <p>It seems in some scenarios that <code>WaitHandle.WaitOne</code> does not pump messages.  But it does sometimes for some messages.  See these links for more information on that:</p>
  
  <ol>
  <li><a href="http://msdn.microsoft.com/en-us/library/74169f59.aspx" rel="noreferrer">Managed and Unmanaged Threading in Microsoft Windows</a></li>
  <li><a href="http://blogs.msdn.com/cbrumme/archive/2003/04/17/51361.aspx" rel="noreferrer">Managed blocking</a> </li>
  </ol>