Пример #1
0
 /// <summary>
 /// Get the last input time in ticks
 /// </summary>
 /// <returns></returns>
 public static uint GetLastInputTime()
 {
     LASTINPUTINFO lastInPut = new LASTINPUTINFO();
     lastInPut.cbSize = (uint)Marshal.SizeOf(lastInPut);
     if (!GetLastInputInfo(ref lastInPut))
         throw new Exception(GetLastError().ToString());
     return lastInPut.dwTime;
 }
Пример #2
0
 internal static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);
Пример #3
0
 private static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);