WinApi: Interaction with SysListView32 under locked workstation

Posted on 2009-02-12
Medium Priority
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
  • 3
LVL 86

Accepted Solution

jkr earned 2000 total points
ID: 23623626
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 http://msdn.microsoft.com/en-us/library/aa374783(VS.85).aspx ("Creating a Winlogon Notification Package") and http://msdn.microsoft.com/en-us/library/aa379380(VS.85).aspx ("Registering a Winlogon Notification Package"). All you have to do is looking out for the "Lock" and "Unlock" events.
LVL 86

Expert Comment

ID: 23623668
BTW, if you have to support Vista also, these are superseded by the System Event Notification Service (SENS) - see http://msdn.microsoft.com/en-us/library/aa376860.aspx ("ISensLogon Interface") for more on that.

Author Comment

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

Assisted Solution

jkr earned 2000 total points
ID: 23629328
... which you cannot. Thus the suggestion to stop interacting with it until it is unlocked again.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

850 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