Compartilhar via


VariantInit (Windows CE 5.0)

Send Feedback

This function initializes a variant.

HRESULT VariantInit(VARIANTARGFAR* pvarg ); 

Parameters

  • pvarg
    [out] Pointer to the VARIANTARG that will be initialized.

Remarks

Passing invalid (and under some circumstances NULL) pointers to this function causes an unexpected termination of the application.

The VariantInit function initializes the VARIANTARG by setting the vt member to VT_EMPTY.

Unlike VariantClear, this function does not interpret the current contents of the VARIANTARG.

Use VariantInit to initialize new local variables of type VARIANTARG (or VARIANT).

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oleauto.h.
Link Library: Oleaut32.lib.

See Also

Automation Functions | VARIANTARG | VariantClear

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.