■ ■ ■ ■ ■ ■
SearchAvailableExe/Tools.cpp
| skipped 782 lines |
783 | 783 | | } |
784 | 784 | | |
785 | 785 | | // 等待进程结束 |
786 | | - | WaitForSingleObject(pi.hProcess, 1000); |
| 786 | + | WaitForSingleObject(pi.hProcess, 500); |
787 | 787 | | |
788 | 788 | | TerminateProcess(pi.hProcess, 0); |
789 | 789 | | |
| skipped 4 lines |
794 | 794 | | // 关闭进程和线程句柄 |
795 | 795 | | CloseHandle(pi.hProcess); |
796 | 796 | | CloseHandle(pi.hThread); |
797 | | - | |
798 | | - | Sleep(500); |
799 | 797 | | |
800 | 798 | | return exitCode; |
801 | 799 | | } |
| skipped 24 lines |
826 | 824 | | DWORD retExitCode = TestCreateProcess(runFilePath); |
827 | 825 | | result->exploitDllPath = hookDllMap[retExitCode]; |
828 | 826 | | |
829 | | - | DeleteDirectory(folderPath.c_str()); |
830 | | - | |
831 | | - | //if (result->exploitDllPath == "") |
832 | | - | // it = results.erase(it); |
833 | | - | //else { |
834 | | - | // ++it; |
835 | | - | // //DeleteDirectory(folderPath.c_str()); |
836 | | - | //} |
| 827 | + | while(!DeleteDirectory(folderPath.c_str())){} |
837 | 828 | | } |