This message was edited by porodoro at 2006-5-19 6:47:39
Hi ,
i've got a code that terminates an another application.
The problem is , that the other application runs as service and its caption changes all the time , and my
code terminates only if it detects the window name of the service app.
What i want , is to terminate the exename of that application , which is listed in task list (CTRL+ALT+DEL -> LIST #2).
The caption is : "Testprj.exe".
Heres my simple code:
s:=FindWindow(Nil, 'Testprj.exe') ;
PostMessage(s, WM_QUIT, 0, 0) ;
and
s:=FindWindow(Nil, 'Testprj') ;
PostMessage(s, WM_QUIT, 0, 0) ;
but it doesnt work.
Can you help please?
edit---
Also i've searched on google but i couldnt find anything better _