Maintaing Cursor Control

This is a discussion on Maintaing Cursor Control within the Windows Programming forums, part of the Platform Specific Boards category; Hi all, My application required me to monitor the mouse events and then either hide it or show during certain ...

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    39

    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?

    Regards

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,668
    Look at the code for "#33" here: http://www.mvps.org/st-software/Ask_NT_Pro.htm
    It's VB but should be easy to convert.

    Found via Google("detect locked workstation");

    gg

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21