GetSystemMetrics function Null safety user32

int GetSystemMetrics (
  1. int nIndex
)

Retrieves the specified system metric or system configuration setting. Note that all dimensions retrieved by GetSystemMetrics are in pixels.

int GetSystemMetrics(
  int nIndex
);

Implementation

int GetSystemMetrics(int nIndex) {
  final _GetSystemMetrics = _user32.lookupFunction<Int32 Function(Int32 nIndex),
      int Function(int nIndex)>('GetSystemMetrics');
  return _GetSystemMetrics(nIndex);
}