CComVariant::Detach

HRESULT Detach( VARIANT* pSrc );

Return Value

A standard HRESULT value.

Parameters

pSrc

[out] Returns the underlying VARIANT value of the object.

Remarks

Detaches the underlying VARIANT from the CComVariant object and sets the object's type to VT_EMPTY.

CComVariant OverviewClass Members

See Also   CComVariant::Attach