冻结我的系统 [英] freeze my system how

查看:89
本文介绍了冻结我的系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在.net中开发一个应用程序,该应用程序将暂停所有正在运行的进程
可能吗 ?像Windows hibernate这样的东西.
以免说正在看电影,打开时我将要开发的应用程序应该暂停或冻结所有应用程序.
看起来更像是暂停了系统中的所有进程
任何想法或建议都受到欢迎

编辑
请注意,不是冻结所有进程,而是冻结用户创建的进程,谢谢.

i''d like to develop an application in .net that will pause all running process
is it possible ? something like windows hibernate does it.
lest say am watching a movie, the app i will be developing when turned on, should pause or freeze all application.
it looks more like pausing all processes in my system
any idea or suggestions are welcomed

EDIT
Please note that am not freezing all process, just the one created by the user, thanks

推荐答案

您需要内核特权才能自己执行此类操作.但是,由于这些操作已在操作系统中可用,因此您可以简单地使用它们.

http://msdn.microsoft.com/en-us/library/system.windows.forms.application.setsuspendstate.aspx [ ^ ]

祝您好运!
You would need kernel privileges to do such operations yourself. But since these operations are already available in the OS you can simply use these.

http://msdn.microsoft.com/en-us/library/system.windows.forms.application.setsuspendstate.aspx[^]

Good luck!


好吧,没有适当的权限您就无法停止服务,从而留下了许多无法触及的进程".我可以想到至少一种近似的方法(对于所有非服务过程),但是我不得不问为什么要这样做.大多数进程占用的CPU时间很少,尤其是当它们没有集中精力/处于活动状态时,因此性能可能不会成为问题.
Well, you can''t stop services without the appropriate permissions, so that leaves a large number of "processes" that are untouchable. I can think of at least one way to approximate that (for all non-service processes), but I have to ask why you want to do this. Most processes take very little CPU time, especially when they''re not focused/active, so performance can''t possibly be the issue.


这篇关于冻结我的系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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