Posted by: Mati Paalmäe
Hi,
I would like to disconnect user automatically from the database after he or
she has been idle for example 10 minutes (no input from mouse or keyboard,
no messages processed). I discovered, that with SalIdleRegisterWindow, it is
easy to send some user message and set timer with SalTimerSet, but I have no
idea how to kill this timer, if user does something with keyboard or mouse
before 10 minutetes. There is no opposite function to SalIdleRegisterWindow,
that would send message if key is pressed or mouse is moved. With
SalIdleUnregisterWindow I can only stop sending idle messages, but that's
it. Can somebody give some advice in that matter? Or maybe the only solution
is to use some DLL function from Win API? In that case which one of them?
Thanks in advance,
Mati