提升管理员权限貌似只能重新启动新进程来实现

            Dim proc As New ProcessStartInfo
            proc.UseShellExecute = True
            proc.WorkingDirectory = Environment.CurrentDirectory
            proc.FileName = Application.ExecutablePath
            proc.Verb = "runas"
            Try
                Process.Start(proc)
            Catch
            End Try

http://support.microsoft.com/kb/981778

微软示例:https://code.msdn.microsoft.com/VBUACSelfElevation-39b7606f

 

相关文章:

  • 2021-09-19
  • 2021-10-20
  • 2022-12-23
  • 2021-04-26
  • 2022-01-05
  • 2022-01-23
猜你喜欢
  • 2021-07-21
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-08-20
  • 2021-12-10
相关资源
相似解决方案