public void UpdateLastHardwareAction()
{
Random Rand = new Random();
IntPtr pLastHardwareAction = (IntPtr)0x010A1B64;
IntPtr pInputEvent = (IntPtr)0x81CEA0;
Point CursorPos = Cursor.Position;
Process.CallFunction<Int32>(pInputEvent, (IntPtr)10, IntPtr.Zero, (IntPtr)Rand.Next(800), (IntPtr)Rand.Next(600), IntPtr.Zero;
Process.CallFunction<Int32>(pInputEvent, (IntPtr)10, IntPtr.Zero, (IntPtr)CursorPos.X, (IntPtr)CursorPos.Y, IntPtr.Zero);
//Process.WriteValue(pLastHardwareAction, GetTimestamp());
}