designCapacityInMilliwattHours property
int?
get
designCapacityInMilliwattHours
Implementation
int? get designCapacityInMilliwattHours {
final retValuePtr = calloc<COMObject>();
try {
final hr = ptr.ref.vtable
.elementAt(7)
.cast<
Pointer<
NativeFunction<
HRESULT Function(Pointer, Pointer<COMObject>)>>>()
.value
.asFunction<int Function(Pointer, Pointer<COMObject>)>()(
ptr.ref.lpVtbl, retValuePtr);
if (FAILED(hr)) throw WindowsException(hr);
return IReference<int>.fromRawPointer(retValuePtr,
referenceIid: '{548cefbd-bc8a-5fa0-8df2-957440fc8bf4}')
.value;
} finally {
free(retValuePtr);
}
}