title: c++ How to get a COM object Coclass's progid at runtime
body: <p>I need to write a function that dynamically extracts the progid from a COM object.</p>
  
  <p>Is this possible?</p>
  
  <p>What's the best way to do it?</p>
  
  <p>EDIT: All the coclasses I need to process implement IProvideClassInfo </p>