Click to See Complete Forum and Search --> : how to capture the system idle time using c/c++


ravinderreddy
July 28th, 2005, 11:54 PM
want to capture the system idle time. Means if the user did not press any key or did not move the mouse then it is considered as system idle time. I want the code for this in C or C++ on windows operating system. Please help me.

golanshahar
July 29th, 2005, 06:30 AM
use the ::GetLastInputInfo(..) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/getlastinputinfo.asp) api.

Cheers