cachedDropTargetEffects property

Pointer<SAFEARRAY> get cachedDropTargetEffects

Implementation

Pointer<SAFEARRAY> get cachedDropTargetEffects {
  final retValuePtr = calloc<Pointer<SAFEARRAY>>();

  try {
    final hr = (ptr.ref.vtable + 6)
        .cast<
          Pointer<
            NativeFunction<
              Int32 Function(Pointer, Pointer<Pointer<SAFEARRAY>> retVal)
            >
          >
        >()
        .value
        .asFunction<
          int Function(Pointer, Pointer<Pointer<SAFEARRAY>> retVal)
        >()(ptr.ref.lpVtbl, retValuePtr);

    if (FAILED(hr)) throw WindowsException(hr);

    final retValue = retValuePtr.value;
    return retValue;
  } finally {
    free(retValuePtr);
  }
}