Searched refs:last_input_info (Results 1 – 2 of 2) sorted by relevance
15 LASTINPUTINFO last_input_info = {0}; in CalculateIdleTimeInternal() local16 last_input_info.cbSize = sizeof(LASTINPUTINFO); in CalculateIdleTimeInternal()18 if (::GetLastInputInfo(&last_input_info)) { in CalculateIdleTimeInternal()20 if (now < last_input_info.dwTime) { in CalculateIdleTimeInternal()24 DWORD time_before_wrap = kMaxDWORD - last_input_info.dwTime; in CalculateIdleTimeInternal()29 current_idle_time = now - last_input_info.dwTime; in CalculateIdleTimeInternal()
17 LASTINPUTINFO last_input_info = {0}; in CalculateIdleState() local18 last_input_info.cbSize = sizeof(LASTINPUTINFO); in CalculateIdleState()20 if (::GetLastInputInfo(&last_input_info)) { in CalculateIdleState()21 current_idle_time = ::GetTickCount() - last_input_info.dwTime; in CalculateIdleState()