Thread: Maintaing Cursor Control

  1. #1
    Registered User
    Join Date
    May 2005

    Unhappy Maintaing Cursor Control

    Hi all,

    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?


  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Look at the code for "#33" here:
    It's VB but should be easy to convert.

    Found via Google("detect locked workstation");


Popular pages Recent additions subscribe to a feed