在 UAC 保护区中创建文件夹

发布于 2024-11-15 13:45:38 字数 139 浏览 3 评论 0原文

我有一个应用程序需要能够半自动地在受 UAC 保护的目录中创建文件夹(用户将在那里批准 UAC 通知,但我不想要求他们自己去做)。该程序不需要提升;是否有一个常见的调用可用于利用资源管理器的内置提升提示来实现此目的,或者我必须实现自己的提升帮助器组件来执行此操作?

I have an application which needs to be able to create folders in UAC-protected directories semi-automatically (the user will be there to approve the UAC notice, but I don't want to ask them to go do it themselves). The program does not otherwise need elevation; is there a common call that can be used to leverage Explorer's built in elevation prompts for this, or must I implement my own elevated helper component to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

洛阳烟雨空心柳 2024-11-22 13:45:38

这通常是通过使用“runas”动词创建单独的进程来完成的:

此进程可以执行任何需要的操作海拔。

This is usually done by creating a separate process with the "runas" verb:

This process can perform any operations which require elevation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文