Disabling UAC programmatically

后端 未结 8 857
情话喂你
情话喂你 2020-11-30 07:07

Is it possible to programmatically disable UAC in Vista? Or, can I make my application run unrestricted by the UAC setting in any way? FYI, the application needs to mount ha

8条回答
  •  误落风尘
    2020-11-30 07:27

    You can't programmatically disable UAC, but you can force the program to run with elevated privileges from the start, so it doesn't prompt each time.

    That will cause it to prompt once on startup, but not each time it needs access.

    To do this, you'll need to create a manifest file and set

    See MSDN for details.

提交回复
热议问题