VariantCopy function Null safety oleaut32

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

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

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

Implementation

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