Access exception question
Not really a bug, but the issue is not documented anywhere explicitly. I've got an app which can be inspected with UIA2 and administrator mode UIA3. But it's completely invisible to user mode UIA3. When I tried the hover mode in inspect, it popped up a message about the unauthorized access exception.
But I can't find any details about this behaviour in any docs. What is the "protected ui element"? Is there any msdn page you could point me at?
Turns out related to isolation level and ui security. More context can be found here: https://learn.microsoft.com/en-us/dotnet/framework/ui-automation/ui-automation-security-overview
The workarounds are either to run the automation app as admin, or add the uiaccess permission to your app manifest and get a code signing certificate from a known CA.