MCPcopy Create free account
hub / github.com/WallBreaker2/op / GetWindowProcessPath

Method GetWindowProcessPath

libop/op/OpProcess.cpp:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void 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
67void op::Op::RunApp(const wchar_t *cmdline, long mode, unsigned long *pid, long *ret) {
68 // 成功时返回新进程 pid,失败时返回 0。

Callers

nothing calls this directly

Calls 1

GetProcesspathMethod · 0.80

Tested by

no test coverage detected