ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: kill specified programs "harshly/silently" at shutdown

<< < (7/8) > >>

Stoic Joker:
Hm, bootvis? I thought it only traced bootup, not shutdown?
-f0dder (January 02, 2008, 07:12 PM)
--- End quote ---
Its primary focus is the startup, true. But smoother shutdown are a common side effect of its adjustments.

jgpaiva:
PIDs aren't necessarily delegated sequentially...
-f0dder (January 02, 2008, 05:15 PM)
--- End quote ---
You're absolutelly right. And in my experiment, they probably were not sequential. I wonder where could we get more data on how this works. Probably it just isn't that "certain".

mouser:
www.ghacks.net just posted something related which could be useful.
it's useful for configuring how long windows itself should wait before terminating unresponsive processes at shutdown.

http://www.edev.no/index.php?page=shutdown


f0dder:
All it takes is modifying a couple of registry keys, but I guess that GUI thing is faster.

Just be careful you don't set it too low, or you could end up killing a program that is shutting down properly, but just taking a bit long to do it - possibly because it has to save that file you had open in it...

skrommel:
 :) I needed this tool, too, so if you haven't found a solution yet, here's CloseKill.

Kills programs on system shutdown.
Example: CloseKill.exe calc.exe,notepad.exe

Skrommel


--- ---;CloseKill.ahk
; Kills programs on system shutdown.`n
; Example: CloseKill.exe calc.exe,notepad.exe
;Skrommel @ 2008


#SingleInstance,Force
#Persistent

If 0=0
{
  MsgBox,0,CloseKill by www.1HourSoftware.com,
(
Kills programs on system shutdown`n
Example: CloseKill.exe calc.exe,notepad.exe
)
  ExitApp
}

Loop,%0%
{
  programs.=%A_Index%
  TrayTip,CloseKill,Waiting to kill`n%programs%
}

DllCall("kernel32.dll\SetProcessShutdownParameters", UInt, 0x4FF, UInt, 0)
OnMessage(0x11, "WM_QUERYENDSESSION")
Return


WM_QUERYENDSESSION(wParam, lParam)
{
  Global programs

  Loop,Parse,programs,`,
  {
    TrayTip,CloseKill,Killing %A_LoopField%
    Process,Close,%A_LoopField%
    Sleep,1000
  }
  ExitApp
}

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version