>Guys , I'm still looking for the code to kill my process in win2k. so far all the codes I've been given don't work. and for some reason the links you all gave don'r work for me, they don't display.
>
>please help
Selim,
I'm not sure why you need to "kill". As Michael Asherman already said, you can close an application by geting its handle window then send WM_CLOSE message.
#Define WM_CLOSE 0x10
Declare Long FindWindow in User32 ;
String cClassName, String cWindowTitle
Declare Long SendMessage in User32 ;
Long hWnd, Long Msg, Long wParam, Long lParam
hWnd = FindWindow( Null, 'Window Title')
SendMessage( hWnd, WM_CLOSE, 0, 0 )
Give it a try
PS: my apologies to make this thread off-topic
Herman