We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

WinApi: Interaction with SysListView32 under locked workstation

Medium Priority
640 Views
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.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2012
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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
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

Commented:
I don't need to detect when the workstation is locked - I need to interact with SysListView32 under locked workstation.
jkr
CERTIFIED EXPERT
Top Expert 2012
Commented:
... which you cannot. Thus the suggestion to stop interacting with it until it is unlocked again.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.