Sorry I don't know. Maybe TerminateThread or TerminateProcess.
Cetin
>Cetin:
>
>Worked like a charm, thank you.
>
>Question:
>Do you know if SendMessage would close a program
>that has crashed - like the END TASK in the
>Task Manager?
>
>If not do you know of another API that will
>close a crashed program?
>
>TIA
>
>Mal
>
>
>
>>Mal,
>>I think you should use SendMessage instead :
>>SendMessage(lnHwnd, WM_CLOSE,0,0)
>>Cetin