Méthode | Description | |
---|---|---|
SendSIGINTToProcess ( |
Uses the native funciton "AttachConsole" to attach the thread to the executing process to try to trigger a CTRL_C event (SIGINT). If the application doesn't honor the event and shut down gracefully, the. wait period will time out after 15 seconds.
|
Méthode | Description | |
---|---|---|
AttachConsole ( uint dwProcessId ) : bool | ||
FreeConsole ( ) : bool | ||
GenerateConsoleCtrlEvent ( CtrlTypes dwCtrlEvent, uint dwProcessGroupId ) : bool | ||
SetConsoleCtrlHandler ( ConsoleCtrlDelegate HandlerRoutine, bool Add ) : bool |
public static SendSIGINTToProcess ( |
||
process | The process to attach to and send the SIGINT | |
shutdownTimeout | System.TimeSpan | |
Résultat | bool |