Free Source Code and Program Tips
How to launch an Application with Admin privileges in VISTA
When you develop some admin utility, which will need the administrator privilege to configures some H/W connected ove LAN, etc. And you will found that the application is running propertyly in XP just by a double click of the mouse, where as in VISTA if you run it as Administrator then only running.
So, how to get the privileges to your utility through programatically at the time of setup?
Here is the solution provided by David Lowndes:
To achieving this privilege, you need to add a manifest to your application that specifies a requestedExecutiionLevel of “requireAdminstrator” – whick tells Vista that it needs to run elevated.
| Print article | This entry was posted by support on March 8, 2007 at 11:36 pm, and is filed under General. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |