int close(int hr) => (ptr.ref.vtable + 23) .cast<Pointer<NativeFunction<Int32 Function(Pointer, Int32 hr)>>>() .value .asFunction<int Function(Pointer, int hr)>()(ptr.ref.lpVtbl, hr);