My application required me to monitor the mouse events and then either hide it or show during certain events. I have managed to succesfully do this using the SetWindowsHookEx() to capture the LowLevelMouseProc().
But now I face a new problem. When somebody locks the workstation, my program is unable to monitor the mouse events and take appropriate action(like hiding or showing the cursor).
Basically what i need to do is to get an indication whether the OS workstation has been locked and depending on that i will put the cursor in a visible condition.
I need to know how I can find the login state of the PC?