Lines Matching defs:handle
69 static bool GetExecutableForProcess(const AutoHandle &handle,
75 if (!::QueryFullProcessImageNameW(handle.get(), 0, &buffer[0], &dwSize))
80 static void GetProcessExecutableAndTriple(const AutoHandle &handle,
91 if (GetExecutableForProcess(handle, executable)) {
106 AutoHandle handle(::OpenProcess(PROCESS_TERMINATE, FALSE, pid), nullptr);
107 if (handle.IsValid())
108 ::TerminateProcess(handle.get(), 1);
148 AutoHandle handle(::OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, FALSE,
158 GetProcessExecutableAndTriple(handle, process);
170 AutoHandle handle(
173 if (!handle.IsValid())
177 GetProcessExecutableAndTriple(handle, process_info);