Setting dialog focus
Windows API
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I am launching a dialog from one application using CreateProcessAsUser Api. The launched application is running under logged in user, while the launcher application is running under system. The launced dialog has one edit control, when it gets launced I want the focus to the dialog and cursor in editcontrol, but the focus goes with the launcher application. I used AttacheThreadInput, BringWindowToTop and setfocus API's to divert the focus to the launched dialog.This is working fine, but as the AttacheThreadInput is prone to deadlock, is there any safer way to achieve this functionality. I think this is generic problem for Vista due to new sessions architecture. Thanks Kuldeep