This method of the ComException Class retrieves the HRESULT returned by the COM method. To catch a ComException object thrown by a COM method, call this method.
public int getHResult();
Returns the HRESULT returned by the COM method.