eCo Software Developer Connection


About DevCon
Subscription to DevCon
Budget of DevCon
FAQ


Roadmap
eCo Software runtime
eCo Software toolkit
Contacts

ULONG APIENTRY WinGetLastInputTime();

WinGetLastInputTime() function is suitable for idle detection.

Return value:

  • 0 - Error occurred (by some reason input hook not installed, can't detect time of the last input event)
  • Other - Time of the last input event

Notes: Can be used from multiple applications, installs only one global input hook. Should be used from PM applications. Will NOT detect user input in fullscreen sessions.

Returned time is similar (and can be compared) with time returned by:

WinGetCurrentTime()

or

DosQuerySysInfo(), system variable QSV_MS_COUNT

Function is very similar to windoze's GetLastInputInfo(), but takes no arguments. See http://msdn2.microsoft.com/en-us/library/ms646302.aspx


Eugene Romanenko eros2@os2.ru, eros2@ecomstation.ru

The function is distributed as part of eCo Software runtime (base)

 
en/wingetlastinputtime.txt · Last modified: 2009/10/10 13:49 (external edit)

 
Recent changes RSS feed
© 2001 - 2009 eCo Software, All rights reserved