GetDpiForWindow function Null safety user32

int GetDpiForWindow(
  1. int hwnd
)

Returns the dots per inch (dpi) value for the associated window.

UINT GetDpiForWindow(
  HWND hwnd
);

Implementation

int GetDpiForWindow(int hwnd) {
  final _GetDpiForWindow = _user32.lookupFunction<Uint32 Function(IntPtr hwnd),
      int Function(int hwnd)>('GetDpiForWindow');
  return _GetDpiForWindow(hwnd);
}