VariantCopy function Null safety oleaut32

int VariantCopy(
  1. Pointer<VARIANT> pvargDest,
  2. Pointer<VARIANT> pvargSrc
)

Frees the destination variant and makes a copy of the source variant.

HRESULT VariantCopy(
  VARIANTARG       *pvargDest,
  const VARIANTARG *pvargSrc
);

Implementation

int VariantCopy(Pointer<VARIANT> pvargDest, Pointer<VARIANT> pvargSrc) {
  final _VariantCopy = _oleaut32.lookupFunction<
      Int32 Function(Pointer<VARIANT> pvargDest, Pointer<VARIANT> pvargSrc),
      int Function(Pointer<VARIANT> pvargDest,
          Pointer<VARIANT> pvargSrc)>('VariantCopy');
  return _VariantCopy(pvargDest, pvargSrc);
}