| 59 | } |
| 60 | |
| 61 | void op::Op::GetWindowProcessPath(LONG_PTR hwnd, std::wstring &retstring) { |
| 62 | DWORD pid = 0; |
| 63 | ::GetWindowThreadProcessId(reinterpret_cast<HWND>(static_cast<LONG_PTR>(hwnd)), &pid); |
| 64 | m_context->window_service.GetProcesspath(pid, retstring); |
| 65 | } |
| 66 | |
| 67 | void op::Op::RunApp(const wchar_t *cmdline, long mode, unsigned long *pid, long *ret) { |
| 68 | // 成功时返回新进程 pid,失败时返回 0。 |
nothing calls this directly
no test coverage detected