| 137 | } |
| 138 | |
| 139 | win::Handle OpenProcess(uint32_t pid, UINT permissions) |
| 140 | { |
| 141 | auto hProc = (Handle)::OpenProcess(permissions, FALSE, pid); |
| 142 | if (!hProc) { |
| 143 | throw Except<HrError>("failed to open process"); |
| 144 | } |
| 145 | return hProc; |
| 146 | } |
| 147 | |
| 148 | std::filesystem::path GetExecutableModulePath() |
| 149 | { |
no outgoing calls
no test coverage detected