Use API function that declare like this(a Delphi Version):
BOOL TerminateProcess( HANDLE hProcess, // handle to the process
UINT uExitCode // exit code for the process
);
Before you can use this function,you must get the process handle(the first parameter).
BOOL TerminateProcess( HANDLE hProcess, // handle to the process
UINT uExitCode // exit code for the process
);
Before you can use this function,you must get the process handle(the first parameter).
SendMessage(WM_CLOSE)