Inspecting System Elements - Remi05/outlines GitHub Wiki
Build using a UiAccess* configuration
In Visual Studio, select either the UiAccessDebug or UiAccessRelease configuration.
Build the solution.
The app should now be built with the uiAccess capability, though note that you won't be able to launch it until you follow the steps below.
Sign the app
Find your Windows SDK install location (typically C:\Program Files (x86)\Windows Kits\10\bin\<version>\x64\) and add it to your PATH environment variable.
Launch a command prompt as admin.
Run makecert -r -pe -n "CN=<certificate_name>" -ss PrivateCertStore testcert.cer
Run certmgr.exe -add testcert.cer -s -r localMachine root