Windows apps
Collapse the table of content
Expand the table of content

VariantInit Function

Initializes a variant.

VOID VariantInit(
  VARIANTARG   *pvarg


Pointer to the VARIANTARG that will be initialized.

The VariantInit function initializes the VARIANTARG by setting the vt field 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).

for(i = 0; i < celt; ++i)
© 2017 Microsoft