GetSystemMetricsForDpi function Null safety user32

int GetSystemMetricsForDpi(
  1. int nIndex,
  2. int dpi
)

Retrieves the specified system metric or system configuration setting taking into account a provided DPI.

int GetSystemMetricsForDpi(
  int  nIndex,
  UINT dpi
);

Implementation

int GetSystemMetricsForDpi(int nIndex, int dpi) {
  final _GetSystemMetricsForDpi = _user32.lookupFunction<
      Int32 Function(Int32 nIndex, Uint32 dpi),
      int Function(int nIndex, int dpi)>('GetSystemMetricsForDpi');
  return _GetSystemMetricsForDpi(nIndex, dpi);
}