This function unmarshals an HRESULT type from the specified stream.
Your application does not explicitly call this function unless performing custom marshaling with a special implementation of IMarshal, and your implementation needs to unmarshal an HRESULT.
The application must use CoUnmarshalHresult to unmarshal HRESULTs previously marshaled by a call to the CoMarshalHresult function.
This function performs the following tasks:
Reads an HRESULT from a stream.
Returns the HRESULT.
To determine whether the platform supports this function, see Determining Supported COM APIs.