open registry go to: HKEY_CURRENT_USER\Control Panel\Desktop locate DWORD value "WaitToKillAppTimeout" default value might be "WaitToKillAppTimeout"="20000" this value represents the time(in milisecond) taken by window to end program when it is not responding. change it to 0 and prevent your computer by hanging.
Multiple article posted. Duplicate of [thread=3497]Simple registry setting to prevent your computer by hanging.[/thread]. Thread closed