| 291 | } |
| 292 | |
| 293 | int EmmyTool::ArchPid() { |
| 294 | const DWORD processId = std::stoi(_cmd.GetArg(2)); |
| 295 | char fileName[_MAX_PATH]; |
| 296 | HANDLE process = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, processId); |
| 297 | GetModuleFileNameEx(process, nullptr, fileName, _MAX_PATH); |
| 298 | |
| 299 | ExeInfo info; |
| 300 | if (GetExeInfo(fileName, info)) { |
| 301 | printf("%d", info.i386); |
| 302 | return info.i386; |
| 303 | } |
| 304 | return -1; |
| 305 | } |
| 306 | |
| 307 | int EmmyTool::ReceiveLog() { |
| 308 | auto pid = _cmd.Get<DWORD>("p"); |
no test coverage detected