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. Other Discussions
  3. Article Writing
  4. How to run an application with administrator privileges

How to run an application with administrator privileges

Scheduled Pinned Locked Moved Article Writing
questiontutorial
2 Posts 2 Posters 0 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.
  • M Offline
    M Offline
    Michael Wilharm
    wrote on last edited by
    #1

    My application needs administrator privileges although the user logged on has only user privilege. I want to change the privilege to administrator at startup of the application. How can I do this? :-O Thanks

    T 1 Reply Last reply
    0
    • M Michael Wilharm

      My application needs administrator privileges although the user logged on has only user privilege. I want to change the privilege to administrator at startup of the application. How can I do this? :-O Thanks

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      Use LogonUser/CreateProcessAsUser. Or write a service that runs with admin privileges and communicates with the application. Tomasz Sowinski -- http://www.shooltz.com.pl

      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