pub fn store_error<E>(error: E) -> ComError where E: Into<ComError>,
Extracts the HRESULT from the error result and stores the extended error information in thread memory so it can be fetched by the COM client.