Compartilhar via


AtlUnmarshalPtr

 

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

Important

This function cannot be used in applications that execute in the Windows Runtime.

Syntax

      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

Marshaling Global Functions
AtlMarshalPtrInProc