| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected