Added a convenient macro for wrapping HRESULT values in a Result type.