Search in sources :

Example 1 with MONITORINFO

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());
}
Also used : HMONITOR(com.sun.jna.platform.win32.WinUser.HMONITOR) MONITORINFOEX(com.sun.jna.platform.win32.WinUser.MONITORINFOEX) MONITORINFO(com.sun.jna.platform.win32.WinUser.MONITORINFO) Test(org.junit.Test)

Aggregations

HMONITOR (com.sun.jna.platform.win32.WinUser.HMONITOR)1 MONITORINFO (com.sun.jna.platform.win32.WinUser.MONITORINFO)1 MONITORINFOEX (com.sun.jna.platform.win32.WinUser.MONITORINFOEX)1 Test (org.junit.Test)1