Home > Software engineering >  How to use the API to create process in administrator mode to open the specified application.
How to use the API to create process in administrator mode to open the specified application.

Time:11-25

Find information can realize the administrator open mode, what's the API can realize?

CodePudding user response:

CreateProcessAsUser

CodePudding user response:

CreateProcessWithLogonW


CodePudding user response:

ShellExecuteEx
SHELLEXECUTEINFO lpVerb="runas"

Runas
Launches an application as Administrator. User Account Control (UAC) will prompt the User for consent to run the application elevated or enter the credentials of an Administrator Account, informs the to run the application.
  • Related