Fog Creek Software
Discussion Board




Windows suspend process

Is there anything in windows that is equivalent to CTRL-Z in unix?  I want to suspend an arbitrary process and wake it up later - all user controlled.

emacsdude
Monday, June 07, 2004

Built in? No. Available via some obscure 3rd party application? Maybe.

Brad Wilson (dotnetguy.techieswithcats.com)
Monday, June 07, 2004

The APIs exist (OpenProcess, SuspendThread, etc).  It may require a simple debugger to attach and freeze the process in question.

Doug
Monday, June 07, 2004

Hum,

In xp, you can control services :

Control panel->Administrative Tools->Services.

In the above, you can start, stop, enable services.

Just pick a running task..and right click on it for options.

The above does assume the process is running as a service, which may not help you if you are just wanting to work with a task…

Albert D. Kallal
Edmonton, Alberta Canada
kallal@msn.com
http://www.attcanada.net/~kallal.msn

Albert D. Kallal
Monday, June 07, 2004

Never use SuspendThread on a thread you don't control -- the thread might just be calling a heap allocation routine or something else that holds a global lock, and then you're doomed...

Frederik Slijkerman
Tuesday, June 08, 2004

http://www.sysinternals.com/ntw2k/freeware/procexp.shtml

Procexp by Sysinternals, a must have for Windows.

B
Tuesday, June 08, 2004

The sysinternals also offers the free commandline tool pssuspend: http://www.sysinternals.com/ntw2k/freeware/pssuspend.shtml

Somorone
Tuesday, June 08, 2004

Thanks everyone!  The sysinternals tools are fantastic.

emacsdude
Wednesday, June 09, 2004

*  Recent Topics

*  Fog Creek Home