MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / path

Method path

source/src/tools/process.h:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 return reinterpret_cast<size_t>(ShellExecuteW(nullptr, L"open", file.c_str(), args.empty() ? nullptr : args.c_str(), nullptr, SW_SHOW)) > 32;
45 }
46 static std::wstring path(HANDLE process)
47 {
48 std::wstring fullPath;
49 if (process && process != INVALID_HANDLE_VALUE)
50 {
51 DWORD len = PATH_BUFFER_SIZE;
52 PATH_BUFFERW(buf);
53 if (QueryFullProcessImageNameW(process, 0, buf, &len)) fullPath = buf;
54 }
55 return fullPath;
56 }
57 static std::wstring path(DWORD processId)
58 {
59 std::wstring fullPath;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected