VariantCopy function oleaut32
Frees the destination variant and makes a copy of the source variant.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-variantcopy.
Implementation
@pragma('vm:prefer-inline')
void VariantCopy(Pointer<VARIANT> pvargDest, Pointer<VARIANT> pvargSrc) {
final hr$ = HRESULT(_VariantCopy(pvargDest, pvargSrc));
if (hr$.isError) throw WindowsException(hr$);
}