getScale method

int getScale()

Throws a WindowsException on failure.

Implementation

int getScale() {
  final scale = adaptiveCalloc<Uint32>();
  final hr$ = HRESULT(_GetScaleFn(ptr, scale));
  if (hr$.isError) {
    free(scale);
    throw WindowsException(hr$);
  }
  final result$ = scale.value;
  free(scale);
  return result$;
}