CComVariant::WriteToStream

 

Saves the underlying VARIANT to a stream.

Syntax

      HRESULT WriteToStream(
   IStream* pStream 
);

Parameters

  • pStream
    [in] A pointer to the IStream interface on a stream.

Return Value

A standard HRESULT value.

Requirements

Header: atlcomcli.h

See Also

CComVariant Class
CComVariant::ReadFromStream