Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Task manager - how to kill process within 1 secound

Status
Not open for further replies.

grofaty

IS-IT--Management
Joined
Jan 16, 2003
Messages
370
Location
SI
Hi,

Is there any setting to kill process from windows task manager that would take immediate effect. Now when I "End task" from task mamager I have to wait for about 5 to 10 secounds. I would like to set this setting to 1 secound. How can I do this?

Thanks,
Grofaty
 
Hi,

Is there NO registry settings to force task manager to kill process without waiting?

Grofaty
 
The only controllable registry values are the following, but I do not believe they are used by Task Manager:

Hive: HKEY_CURRENT_USER
Key: \Control Panel\Desktop
Name: WaitToKillAppTimeout
Data Type: REG_SZ
Value: Milliseconds in decimal (default is 20000)

Hive: HKEY_CURRENT_USER
Key: \Control Panel\Desktop
Name: HungAppTimeout
Data Type: REG_SZ
Value: Milliseconds in decimal (default is 5000)

I believe Task Manager directly calls the Win32 API WM_Close, and processes the results. This is to avoid a dialogue box for some applications from appearing.

You will have better luck with the three command line options I linked earlier; all offer the option of forcing a close without a timeout interval.
 
Hi,

Is there any way to simulate the "hang up" program? I would like to test this out, but "miracle", no-program has freezen for 3 days.

Thanks,
Grofaty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top