Share via


AtlUnmarshalPtr

Converts the stream's marshaling data into an interface pointer that can be used by the client.

HRESULT AtlUnmarshalPtr(
   IStream* pStream,
   const IID& iid,
   IUnknown** ppUnk 
);

Parameters

  • pStream
    [in] A pointer to the stream being unmarshaled.

  • iid
    [in] The GUID of the interface being unmarshaled.

  • ppUnk
    [out] A pointer to the unmarshaled interface.

Return Value

A standard HRESULT value.

Example

See the example for AtlMarshalPtrInProc.

Requirements

Header: atlbase.h

See Also

Reference

AtlMarshalPtrInProc

Other Resources

Marshaling Global Functions