Search in sources :

Example 1 with LASTINPUTINFO

use of com.sun.jna.platform.win32.WinUser.LASTINPUTINFO in project jna by java-native-access.

the class User32Test method testGetLastInputInfo.

@Test
public void testGetLastInputInfo() throws Exception {
    LASTINPUTINFO plii = new LASTINPUTINFO();
    assertEquals(plii.size(), plii.cbSize);
    assertTrue(User32.INSTANCE.GetLastInputInfo(plii));
    assertTrue(Kernel32.INSTANCE.GetTickCount() >= plii.dwTime);
    assertTrue(plii.dwTime > 0);
}
Also used : LASTINPUTINFO(com.sun.jna.platform.win32.WinUser.LASTINPUTINFO) Test(org.junit.Test)

Aggregations

LASTINPUTINFO (com.sun.jna.platform.win32.WinUser.LASTINPUTINFO)1 Test (org.junit.Test)1