VariantChangeType function Null safety oleaut32

int VariantChangeType (
  1. Pointer<NativeType> pvargDest,
  2. Pointer<NativeType> 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 pvargDest, Pointer pvarSrc, int wFlags, int vt) {
  final _VariantChangeType = _oleaut32.lookupFunction<
      Int32 Function(
          Pointer pvargDest, Pointer pvarSrc, Uint16 wFlags, Uint32 vt),
      int Function(Pointer pvargDest, Pointer pvarSrc, int wFlags,
          int vt)>('VariantChangeType');
  return _VariantChangeType(pvargDest, pvarSrc, wFlags, vt);
}