如何显示Runas对话框 [英] how to get the runas dialog box to show up

查看:109
本文介绍了如何显示Runas对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试打开具有管理员权限的其他应用程序,但与此同时遇到了问题.我正在使用process.start来启动应用程序,但我想知道的是如何获取运行方式对话框并提示输入其他凭据?

I have been trying to open other application with admin rights and i m having issues with that. I m using process.start to start the application but what i want to know is how can i get the run as dialog box to show up and prompt for other credentials?

推荐答案

你不知道.

真的是真的.您只需提供自己的对话框来询问凭据,然后将其提供给ProcessStartInfo实例,然后将其传递给Process.Start.

ProcessStartInfo [
You don''t.

It''s simply really. You just provide your own dialog asking for the credentials, then you supply those to a ProcessStartInfo instance and pass that to Process.Start.

ProcessStartInfo[^] class


这篇关于如何显示Runas对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆