Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Focus issues in ConPTY sessions

This is working in build 53.

Accevent.exe is a remarkably ill-behaved app. It will only run elevated, and it refuses to allow you to start it detached from the TCC job. (The MS docs say that an app can choose to do that, but I've never seen another one that actually did it.)

To get accevent.exe to not inherit the TCC job I had to piggyback off the tcmd-elev.exe helper app (which allows you to start elevated tabs in a non-elevated TCMD). TCC passes the accevent.exe command line to tcmd-elev.exe, which is not connected to the TCC job, and then tcmd-elev.exe starts accevent.exe.
 
Accevent.exe is a remarkably ill-behaved app. It will only run elevated, and it refuses to allow you to start it detached from the TCC job. (The MS docs say that an app can choose to do that, but I've never seen another one that actually did it.)

To get accevent.exe to not inherit the TCC job I had to piggyback off the tcmd-elev.exe helper app (which allows you to start elevated tabs in a non-elevated TCMD). TCC passes the accevent.exe command line to tcmd-elev.exe, which is not connected to the TCC job, and then tcmd-elev.exe starts accevent.exe.
Just think this is an app that is actually produced for monitoring accessibility (MSAA and UIA) events by Microsoft that is included in the official Windows SDK.
 
Accevent.exe is a remarkably ill-behaved app. It will only run elevated, and it refuses to allow you to start it detached from the TCC job. (The MS docs say that an app can choose to do that, but I've never seen another one that actually did it.)

To get accevent.exe to not inherit the TCC job I had to piggyback off the tcmd-elev.exe helper app (which allows you to start elevated tabs in a non-elevated TCMD). TCC passes the accevent.exe command line to tcmd-elev.exe, which is not connected to the TCC job, and then tcmd-elev.exe starts accevent.exe.
I see this works if I rename accevent.exe to test.exe. Obviously this means you were able to design a generic way to deal with this that isn't accevent specific. I'm curious how you did it.
 
I see this works if I rename accevent.exe to test.exe. Obviously this means you were able to design a generic way to deal with this that isn't accevent specific. I'm curious how you did it.

TCC looks for the error (elevation required) and if it's a GUI app, pass it to tcmd-elev, which is already elevated and which starts the app through the shell instead of the CreateProcess API.
 
Back
Top