Click here to Skip to main content
12,356,774 members (63,376 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

13.8K views
19 bookmarked
Posted

Is Your App Running As Administrator?

, 19 Jan 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
You can also add an application manifest file. If you're using VS 2010, there's an option for one in the "Add New Item" dialog (right click on the project, click "Add" then click "New Item") and edit the generated file to uncomment the line that says:<requestedExecutionLevel ...
You can also add an application manifest file. If you're using VS 2010, there's an option for one in the "Add New Item" dialog (right click on the project, click "Add" then click "New Item") and edit the generated file to uncomment the line that says:

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

This not only forces the UAC dialog to open when you run the application, it also puts a little shield over your icon (well, in Windows 7 anyway).

There's a little more information on MSDN here.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Samuel Cragg
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralReason for my vote of 5 Good alternative... Pin
Pravin Patil, Mumbai1-Nov-11 18:52
memberPravin Patil, Mumbai1-Nov-11 18:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 19 Jan 2011
Article Copyright 2011 by Samuel Cragg
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid