eCo Software Developer Connection

About DevCon
Subscription to DevCon
Budget of DevCon

eCo Software runtime
eCo Software toolkit

This is an old revision of the document!

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:



DosQuerySysInfo(), system variable QSV_MS_COUNT

Function is very similar to windoze's GetLastInputInfo(), but takes no arguments. See

Eugene Romanenko,

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

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

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