UI Automation doesn't see hidden windows?
问题 I have winforms application that is signed and has manifest with level="requireAdministrator" uiAccess="false". I want to start another application with hidden window and to work with it using UI Automation API. Process procinst = new Process(); procinst.StartInfo = new ProcessStartInfo() { WindowStyle = ProcessWindowStyle.Hidden, UseShellExecute = true, ErrorDialog = true, Verb = "runas", FileName = appfilepath }; procinst.Start(); The new process with hidden window can be seen in Spy++ but