| 263 | } |
| 264 | |
| 265 | int EmmyTool::ListProcesses() { |
| 266 | std::vector<Process> list; |
| 267 | GetProcesses(list); |
| 268 | |
| 269 | for (auto &value: list) { |
| 270 | printf("%d\n", value.id); |
| 271 | // title 中可能出现\n 所以title中的\n全部转为' ' |
| 272 | translateText(value.title); |
| 273 | |
| 274 | printf("%s\n", value.title.c_str()); |
| 275 | |
| 276 | translateText(value.path); |
| 277 | |
| 278 | printf("%s\n", value.path.c_str()); |
| 279 | printf("----\n"); |
| 280 | } |
| 281 | return 0; |
| 282 | } |
| 283 | |
| 284 | int EmmyTool::ArchFile() { |
| 285 | ExeInfo info; |
no test coverage detected