Function Reference
_VariantClear
Clears the contents of a VARIANT structure.
_VariantClear($pVariant)
Parameters
$pVariant
Pointer to the VARIANT structure to clear.
Return Value
Success:
0 (S_OK).
Failure:
Non-zero HRESULT, with @error set to 1 (DllCall error).
Remarks
Frees resources held by the VARIANT (e.g., BSTR, SafeArray).
Related
_VariantInit