Manifest FAQs
Keywords: UI Access UIAccess TRUE FALSE @TRUE @FALSE Manifest Notes FAQ FAQs Code Signing Certificate MakeCert
Manifest Notes:
- Applications running at normal privilege levels are NOT allowed to communicate with (i.e. send messages to) applications running at higher privilege levels
(e.g. the SendMessage API reports success but your message never reaches the target application running at a higher privilege).
- If your application needs to send messages to all applications, regardless of their privilege level:
- The uiAccess flag MUST be set to TRUE in your application's manifest.
- Your code MUST be digitally signed.
- Your application MUST reside in a trusted location (e.g. Windows, Program Files), otherwise the uiAccess flag is ignored. It will still run if they are not in one of these locations, but they will not receive the privilege. You can disable this security feature through the local security policy mmc snap-in.
- Regardless of the state of the uiAccess flag, your application will always be able to send messages/drive input to windows of applications running at privilege levels equal to or less than your own privilege level.
- The size of your manifest must be an exact multiple of 4 (i.e. if it is 253 bytes/characters, then you must pad the end of the manifest text with three spaces).
Code Signing Notes:
Can't afford to pay for a Code Signing Certificate?
You can use makecert to create your own certificate and then add the cert to your trusted certificate store to run the code on your own machine. Reference:
If your application does not have a digital signature and has uiAccess=true in its manifest, it will fail with "A referral was returned from the server."
NOTE: These instructions assume you have visual studio installed and are using a command prompt that has all the environment variables set to find SDK utilities
such as makecert and signtool. If not, you will need to find these tools on your hard drive before running them.
- Open an elevated command prompt
- Click start
- Find Cmd Shell or command prompt
- Right-click, click Run As Administrator
- Create a trusted root certificate
- Sign your file
Article ID: W17969
Filename: Manifest Faqs.txt
File Created: 2013:01:14:13:09:52
Last Updated: 2013:01:14:13:09:52