+ Reply to Thread
Results 1 to 2 of 2

Thread: Running process as admin

  1. #1

    Running process as admin

    I am developing an desktop application. Application does not require admin rights for almost all the features.

    But for one feature I have anaylzed that it requires admin rights. How can I solve this issue?

    It is acceptable to start another application from my application. Is there a way that I can run an application with admin rights?

  2. #2
    You can run another process which requires admin privilege.

    You must have admin username and password for this.

    a. Use LogonUser and CreateProcessAsUser APIs : http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
    b. CreateProcessWithLogon : http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

+ Reply to Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts