WinApi: Interaction with SysListView32 under locked workstation

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.
LVL 2
EPAM_SystemsAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
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.
0
 
jkrCommented:
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.
0
 
EPAM_SystemsAuthor Commented:
I don't need to detect when the workstation is locked - I need to interact with SysListView32 under locked workstation.
0
 
jkrConnect With a Mentor Commented:
... which you cannot. Thus the suggestion to stop interacting with it until it is unlocked again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.