Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. How to launch an Application with Admin privileges in VISTA

How to launch an Application with Admin privileges in VISTA

Scheduled Pinned Locked Moved Windows API
toolshelptutorialworkspace
2 Posts 2 Posters 6 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ravinder Are
    wrote on last edited by
    #1

    Hi All, I have an Application which is an Admin utility, which will configures some H/W connected over LAN. Actully this application is running properly in XP just by a double clik of mouse, where as in VISTA if we run it as Administrator then only running. here i want to give privileges to my Utility throgh programatically at the time of setup/ some how. Please help me in this regard. Thanks in Adv,

    Are

    M 1 Reply Last reply
    0
    • R Ravinder Are

      Hi All, I have an Application which is an Admin utility, which will configures some H/W connected over LAN. Actully this application is running properly in XP just by a double clik of mouse, where as in VISTA if we run it as Administrator then only running. here i want to give privileges to my Utility throgh programatically at the time of setup/ some how. Please help me in this regard. Thanks in Adv,

      Are

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Add a UAC manifest to the EXE that marks it as needing admin rights to run. See this article[^] (search for "IsUserAdmin.exe.manifest") Or do a web search for "requireadministrator" and "requestedExecutionLevel" and you'll find lots of pages on how to use this new manifest.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Ford, what's this fish doing in my ear?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups