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);
}
Aggregations