title: Convert std::exception to EXCEPTION_POINTERS
body: <p>I may be <em>completely</em> misunderstanding how to use the Google Breakpad API, and am open to comments / suggestions / rude remarks if that is the case. I am trying to call the following C++ function:</p>
  
  <pre><code>bool WriteMinidumpForException(EXCEPTION_POINTERS* exinfo);
  </code></pre>
  
  <p>I have a reference to a <code>std::exception</code>:</p>
  
  <pre><code>try {
    return QApplication::notify(receiver, event);
  } catch (std::exception &amp;ex) {
    eh_.WriteMinidumpForException(?????);
    // ... do some more stuff and ultimately kill this process
  }
  </code></pre>
  
  <p>(<code>eh_</code> is a <code>google_breakpad::ExceptionHandler</code>.)</p>
  
  <p>What do I put in the <strong>?????</strong></p>
  
  <p><em>Background:</em> The reason this is necessary (I think) is that Qt will not support an exception thrown in an event handler. It will not propagate correctly, and thus the minidump that Breakpad produces is completely useless because the actual context of the exception has been lost. Instead, you must catch all exceptions and handle them in the override of <code>QApplication::notify()</code>, which is what I am trying to do. In the case of an exception, I want to immediately write my minidump for that exception (which is sounds like <code>WriteMinidumpForException</code> will do) and then notify the user and quit the application. But I am not sure what to pass as the <code>EXCEPTION_POINTERS*</code> parameter.</p>