| 706 | } |
| 707 | |
| 708 | void Ext2StopSrv() |
| 709 | { |
| 710 | PROCESS_INFORMATION pi = g_Ext2Srv; |
| 711 | |
| 712 | memset(&g_Ext2Srv, 0, sizeof(pi)); |
| 713 | |
| 714 | /* wait until process exits or timeouts */ |
| 715 | |
| 716 | if (pi.hProcess != INVALID_HANDLE_VALUE) { |
| 717 | TerminateProcess(pi.hProcess, -1); |
| 718 | CloseHandle(pi.hProcess); |
| 719 | } |
| 720 | if (pi.hThread != INVALID_HANDLE_VALUE) { |
| 721 | CloseHandle(pi.hThread); |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | /* Ext2EnablePrivilege(SE_TCB_NAME) */ |
| 726 |