title: How to use Process.WaitForExit
body: <p>I'm calling a 3rd part app which 'sometimes' works in VB.NET (it's a self-hosted WCF). But sometimes the 3rd party app will hang forever, so I've added a 90-second timer to it. Problem is, how do I know if the thing timed out?</p>
  
  <p>Code looks like this:</p>
  
  <pre><code>Dim MyProcess as System.Diagnostics.Process = System.Diagnostics.Process.Start(MyInfo)
  MyProcess.WaitForExit(90000)
  </code></pre>
  
  <p>What I'd like to do is something like this</p>
  
  <pre><code>If MyProcess.ExceededTimeout Then
      MyFunction = False
  Else
      MyFunction = True
  End If
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Jason</p>