Hotkey property

int Hotkey

Implementation

int get Hotkey {
  final retValuePtr = calloc<Int32>();

  try {
    final hr = ptr.ref.vtable
            .elementAt(15)
            .cast<
                Pointer<
                    NativeFunction<
                        Int32 Function(Pointer, Pointer<Int32> piHK)>>>()
            .value
            .asFunction<int Function(Pointer, Pointer<Int32> piHK)>()(
        ptr.ref.lpVtbl, retValuePtr);

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

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

Implementation

set Hotkey(int value) {
  final hr = ptr.ref.vtable
      .elementAt(16)
      .cast<Pointer<NativeFunction<Int32 Function(Pointer, Int32 iHK)>>>()
      .value
      .asFunction<int Function(Pointer, int iHK)>()(ptr.ref.lpVtbl, value);

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