CoUnmarshalHresult function (combaseapi.h)
Unmarshals an HRESULT type from the specified stream.
Syntax
HRESULT CoUnmarshalHresult(
[in] LPSTREAM pstm,
[out] HRESULT *phresult
);
Parameters
[in] pstm
A pointer to the stream from which the HRESULT is to be unmarshaled.
[out] phresult
A pointer to the unmarshaled HRESULT.
Return value
This function can return the standard return values E_OUTOFMEMORY and E_UNEXPECTED, as well as the following values.
Return code | Description |
---|---|
|
The HRESULT was unmarshaled successfully. |
|
pStm is an invalid pointer. |
Remarks
You do not explicitly call this function unless you are performing custom marshaling (that is, writing your own implementation of IMarshal), and your implementation needs to unmarshal an HRESULT.
You must use CoUnmarshalHresult to unmarshal HRESULT values previously marshaled by a call to the CoMarshalHresult function.
This function performs the following tasks:
- an HRESULT from a stream.
- Returns the HRESULT.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | combaseapi.h (include Objbase.h) |
Library | Ole32.lib |
DLL | Ole32.dll |