In order to detect user absence GetLastInputInfo()
can be used.
I want to make GetLastInputInfo()
return that I've just used keyboard/mouse all the time - as I've been actively using the computer so that whoever relies on GetLastInputInfo()
thinks I'm actively using the computer.
Can I use any Windows API functions to achieve that?