| 95 | return TRUE; |
| 96 | } |
| 97 | VOID UninitializeService() |
| 98 | { |
| 99 | if (ChildProcessListenerThread) |
| 100 | { |
| 101 | TerminateThread(ChildProcessListenerThread, 0); |
| 102 | ChildProcessListenerThread = NULL; |
| 103 | } |
| 104 | |
| 105 | if (NewProcessListenerThread) |
| 106 | { |
| 107 | TerminateThread(NewProcessListenerThread, 0); |
| 108 | NewProcessListenerThread = NULL; |
| 109 | } |
| 110 | |
| 111 | RemoveR77Header(); |
| 112 | |
| 113 | if (ControlPipeListenerThread) |
| 114 | { |
| 115 | // Terminating the control pipe thread must be the last action! |
| 116 | // If this funcion was called from ControlCallback, the current thread will terminate, |
| 117 | // thus, this function will cease to execute. |
| 118 | |
| 119 | TerminateThread(ControlPipeListenerThread, 0); |
| 120 | ControlPipeListenerThread = NULL; |
| 121 | } |
| 122 | } |
| 123 | static VOID DetachService() |
| 124 | { |
| 125 | // A thread was created with a pointer to DetachService(), thus requesting the r77 service to remove itself gracefully. |
no test coverage detected