Esempio n. 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;
 }
Esempio n. 2
0
 internal static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);
Esempio n. 3
0
 private static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);
Esempio n. 4
0
 private static extern bool GetLastInputInfo(ref LASTINPUTINFO plii);