http://msdn.microsoft.com/en-us/library/bb131707.aspx
Determines whether the parameter is a success or failure HRESULT and throws an exception in case of failure.