Export (0) Print
Expand All
Expand Minimize

VariantInit

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function initializes a variant.


VOID VariantInit( 
  VARIANTARG FAR* pvarg 
); 

pvarg

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

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 functiondoes not interpret the current contents of the VARIANTARG.

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

Headeroleauto.h
Libraryoleaut32.lib
Windows Embedded CEWindows CE 2.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft