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
}