GetMonitorInfo function Null safety user32
- int hMonitor,
- Pointer<
MONITORINFO> lpmi
The GetMonitorInfo function retrieves information about a display monitor.
BOOL GetMonitorInfoW(
HMONITOR hMonitor,
LPMONITORINFO lpmi
);
Implementation
int GetMonitorInfo(int hMonitor, Pointer<MONITORINFO> lpmi) {
final _GetMonitorInfo = _user32.lookupFunction<
Int32 Function(IntPtr hMonitor, Pointer<MONITORINFO> lpmi),
int Function(int hMonitor, Pointer<MONITORINFO> lpmi)>('GetMonitorInfoW');
return _GetMonitorInfo(hMonitor, lpmi);
}