| |
Kill a process properly on MSW.
Process killing is very poor in the design of the Microsoft OS's. This function will do the best process killing that is possible on this platform. Under NT variant OS's (NT, 2000, XP, etc) on a
wxSIGKILL signal, it will go inside the process and kill it from within, instead of using the TerminateProcess() API call which will not detach DLLs properly. On older MSW version's, 95,98, Me, the
wxSIGKILL will use the crappy TerminateProcess() API call, since that is all that is possible on that OS.
- Parameters:
-
| pid |
The pid to process to be killed. |
| sig |
The signal it should be killed with (wxSIGKILL, wxSIGTERM and wxSIGNONE, are the only MSW relevant ones as of wx2.3.3--Rest are just remapped to wxSIGTERM). wxSIGTERM only works on processes that
have a window. |
| krc |
The kill error returned. |
| option |
Options: any or none of optionOS_MSW_PROCESS_KILL_CHILDREN = 1, optionOS_MSW_PROCESS_WAIT_FOR_NAMED_APPLICATION_TERMINATION |
- Returns :
- 0 on success.
|