Click here to Skip to main content
15,886,810 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Posted
Updated 13-Apr-11 3:14am
v2
Comments
Prerak Patel 13-Apr-11 7:48am    
And what will you do with that?
Tarun.K.S 13-Apr-11 7:54am    
Good question!
Toli Cuturicu 13-Apr-11 8:16am    
Why? Seriously, why?
Cool Smith 13-Apr-11 9:11am    
a Friend has requested it for pausing a lot of process he started. this that has to do with games, movies, etc

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!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 13-Apr-11 8:06am    
Good answer, my 5.
--SA
Cool Smith 25-Apr-11 5:29am    
am freezing all application started by the user, will this do it. it sound like it will work for the current application only
E.F. Nijboer 26-Apr-11 6:51am    
Have a look at this forum on MSDN:
http://social.msdn.microsoft.com/forums/en-us/vbgeneral/thread/CDDE6CEF-3971-40A6-B4DD-02DB963868CE
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.
 
Share this answer
 
Comments
Cool Smith 13-Apr-11 9:04am    
a friend has requested it, who runs many apps, and "cannot afford to shutdown or leave some app running without monitoring it"
Marc A. Brown 13-Apr-11 9:39am    
I would point out to your friend that if he pauses or freezes an app, he's not going to be monitoring it, or at least monitoring it won't really have any effect since it won't be doing anything while it's frozen. Sorry, but it sounds like a bogus reason to me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900