WinApi: Interaction with SysListView32 under locked workstation

Posted on 2009-02-12
Last Modified: 2013-11-25
Hi Experts,

I there a way to emulate mouse events like WM_LBUTTONDBLCLK (SendMessage) or keypress (SendKey/SendInput: ENTER) to SysListView32 under locked workstation?

At the moment no mouse or keyboard events are allowed under locked workstation, but my application is interacting with another application
using winapi messages and I can't find any other way implement this.

Thank you.
Question by:EPAM_Systems
    LVL 86

    Accepted Solution

    I'd rather go the route to detect when the workstation i locked, suspend your interaction and resume it after the machine has been unlocked again. See ("Creating a Winlogon Notification Package") and ("Registering a Winlogon Notification Package"). All you have to do is looking out for the "Lock" and "Unlock" events.
    LVL 86

    Expert Comment

    BTW, if you have to support Vista also, these are superseded by the System Event Notification Service (SENS) - see ("ISensLogon Interface") for more on that.
    LVL 2

    Author Comment

    I don't need to detect when the workstation is locked - I need to interact with SysListView32 under locked workstation.
    LVL 86

    Assisted Solution

    ... which you cannot. Thus the suggestion to stop interacting with it until it is unlocked again.

    Featured Post

    Why spend so long doing email signature updates?

    Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

    Join & Write a Comment

    Several part series to implement Internet Explorer 11 Enterprise Mode
    The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
    The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now