Welcome to TechNet Blogs Sign in | Join | Help

Syndication

News

Locations of visitors to this page These postings are provided "AS IS" without warranty, and confer no rights.
Making your app prompt for elevation in Windows Vista

 

You find yourself in a situation where you may want your app to run with privileges.  In this case you want the app the prompt for elevation when its started.  You could have the user just alt-click and runas administrator or you can put it in the manifest.

Short answer:

<security>

     <requestedPrivileges>

          <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>

     </requestedPrivileges>

 </security>

Long answer:

From http://msdn2.microsoft.com/en-us/library/aa480150.aspx 

 

 

Technorati tags: , ,

Published Tuesday, February 20, 2007 6:27 PM by Brad Rutkowski

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
Page view tracker