okay heres another try .. why isn't there any processgethandle, processgetsate funcs btw?? do i need handle?
[edit] btw in the helpfile Int and long both say a 32 bit integer for whatever reason.. o.o
opt('wintitlematchmode',2)
$Winhandle = WinGetHandle('Untitled - Notepad')
$ProcH = DllCall('kernel32.dll','int','GetCurrentProcess','hwnd',$Winhandle)
$ExitC = DllCall('kernel32.dll','int','GetExitCodeProcess','hwnd',$ProcH,'ptr',0)
DllCall('kernel32.dll','ptr','TerminateProcess','hwnd',$Winhandle,'int',$ExitC)