| 49 | } |
| 50 | |
| 51 | bool CProcess::Wait(uint32_t Interval) |
| 52 | { |
| 53 | if (!this->ProcessName.length()) |
| 54 | return false; |
| 55 | this->hProcess = 0; |
| 56 | while (!this->ProcessList.count(ProcessName)) |
| 57 | { |
| 58 | this->ProcessList = this->GetProcessList(); |
| 59 | Sleep(Interval); |
| 60 | } |
| 61 | return true; |
| 62 | } |
| 63 | |
| 64 | bool CProcess::SetPrivilege(LPCTSTR lpszPrivilege, BOOL bEnablePrivilege) |
| 65 | { |
no test coverage detected