COM Vuser Functions (LRC) > Alphabetical List of Functions > lrc_variant_CoObject

lrc_variant_CoObject

Example: lrc_variant_CoObject Assignment to Variants

Assigns an IUnknown interface pointer to a variant.

VARIANT lrc_variant_CoObject( IUnknown* pUnknown );
VARIANT lrc_variant_CoObject_by_variant( IUnknown* pUnknown ); 
pUnknown A pointer to an IUnknown interface.

The lrc_variant_CoObject function assigns an IUnknown interface pointer to a variant.

The lrc_variant_CoObject_by_variant function assigns an IUnknown interface pointer to a variant and returns a variant containing a reference to the variant containing the IUnknown reference.

Return Values

lrc Return Values

Parameterization

Parameterization is not applicable to this function.