VariantChangeType function Null safety oleaut32

int VariantChangeType(
  1. Pointer<VARIANT> pvargDest,
  2. Pointer<VARIANT> pvarSrc,
  3. int wFlags,
  4. int vt
)

Converts a variant from one type to another.

HRESULT VariantChangeType(
  VARIANTARG       *pvargDest,
  const VARIANTARG *pvarSrc,
  USHORT           wFlags,
  VARTYPE          vt
);

Implementation

int VariantChangeType(
    Pointer<VARIANT> pvargDest, Pointer<VARIANT> pvarSrc, int wFlags, int vt) {
  final _VariantChangeType = _oleaut32.lookupFunction<
      Int32 Function(Pointer<VARIANT> pvargDest, Pointer<VARIANT> pvarSrc,
          Uint16 wFlags, Uint16 vt),
      int Function(Pointer<VARIANT> pvargDest, Pointer<VARIANT> pvarSrc,
          int wFlags, int vt)>('VariantChangeType');
  return _VariantChangeType(pvargDest, pvarSrc, wFlags, vt);
}