I wrote an application in Java and it's purpose is to log the last time any user action has taken place.
When running this application logged in it works perfectly. But when I running it as a Windows Service it doesn't work because, from what I understand, it only captures the last user actions on Session0.
I want my application to get the last user input over all users logged in and even when no user is logged in. So if I move the mouse or press a key when logged out it will count towards the last user action. And if anyone is logged into the computer moves the mouse or presses a key this will count also.
I am currently using the approach described here that involves using JNA.