| 121 | } |
| 122 | |
| 123 | bool CProcess::Open(DWORD dwDesiredAccess) |
| 124 | { |
| 125 | if (!this->ProcessName.length()) |
| 126 | return false; |
| 127 | this->ProcessList = this->GetProcessList(); |
| 128 | if (this->ProcessList.count(ProcessName)) |
| 129 | this->hProcess = OpenProcess(dwDesiredAccess, false, this->ProcessList[ProcessName]); |
| 130 | return IsValidProcess(); |
| 131 | } |
| 132 | |
| 133 | bool CProcess::Close() |
| 134 | { |
no test coverage detected