The IASPError::get_Number method returns a long integer that contains the returned error code.
HRESULT get_Number( LONG *plNumber // pointer to a LONG containing the error
);