use of com.sun.jna.platform.win32.WinUser.MONITORINFO in project jna by java-native-access.
the class User32Test method testGetMonitorInfo.
@Test
public final void testGetMonitorInfo() {
HMONITOR hMon = User32.INSTANCE.MonitorFromWindow(User32.INSTANCE.GetDesktopWindow(), WinUser.MONITOR_DEFAULTTOPRIMARY);
assertTrue(User32.INSTANCE.GetMonitorInfo(hMon, new MONITORINFO()).booleanValue());
assertTrue(User32.INSTANCE.GetMonitorInfo(hMon, new MONITORINFOEX()).booleanValue());
}
Aggregations