elementFromHandle method

int elementFromHandle(
  1. int hwnd,
  2. Pointer<Pointer<COMObject>> element
)

Implementation

int elementFromHandle(int hwnd, Pointer<Pointer<COMObject>> element) =>
    (ptr.ref.vtable + 6)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, IntPtr hwnd,
                            Pointer<Pointer<COMObject>> element)>>>()
            .value
            .asFunction<
                int Function(Pointer, int hwnd,
                    Pointer<Pointer<COMObject>> element)>()(
        ptr.ref.lpVtbl, hwnd, element);