/// <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;
 }
 internal static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);
 private static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);
Exemple #4
0
 private static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);