限制其他应用程序运行。 [英] Restricting other application from running.

查看:64
本文介绍了限制其他应用程序运行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究WPF并遇到问题,即我希望在应用程序启动时限制Windows 8计算机运行其他应用程序。我知道Windows 8允许我们只使用gpedit.msc运行指定的应用程序,但我希望它通过C#,以便管理员不必完成所有这些步骤以允许 指定的应用程序。

I am working on WPF and have a problem i.e. I want to restrict Windows 8 machine from running other application when my application started. I know Windows 8 allows us to run only specified application using "gpedit.msc" but i want it through C# so that administrator does not have to go through all those steps for allowing specified application.

推荐答案

枚举进程列表并终止您未明确允许的任何进程(小心允许您自己的进程......)。

请注意,当用户关闭您的应用程序时,他仍然可以启动任何其他程序。
Enumerate a list of Processes and kill any Process which you did not explicitly allow (be careful to allow you own process...).
Note that when the user closes your application, he'll still be able to start any other program.


这篇关于限制其他应用程序运行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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