avgBytesPerSec property

int avgBytesPerSec

Implementation

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

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

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

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

Implementation

set avgBytesPerSec(int value) {
  final hr = (ptr.ref.vtable + 14)
          .cast<
              Pointer<
                  NativeFunction<
                      Int32 Function(Pointer, Int32 AvgBytesPerSec)>>>()
          .value
          .asFunction<int Function(Pointer, int AvgBytesPerSec)>()(
      ptr.ref.lpVtbl, value);

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