id property

int get id

Implementation

int get id {
  final retValuePtr = calloc<Uint32>();

  try {
    final hr = ptr.ref.vtable
        .elementAt(6)
        .cast<
            Pointer<
                NativeFunction<
                    HRESULT Function(VTablePointer lpVtbl,
                        Pointer<Uint32> retValuePtr)>>>()
        .value
        .asFunction<
            int Function(VTablePointer lpVtbl,
                Pointer<Uint32> retValuePtr)>()(ptr.ref.lpVtbl, retValuePtr);

    if (FAILED(hr)) throwWindowsException(hr);

    return retValuePtr.value;
  } finally {
    free(retValuePtr);
  }
}