* @brief Wait for the process handle to exit * @return the exit code of the process */
| 24 | * @return the exit code of the process |
| 25 | */ |
| 26 | [[maybe_unused]] int WaitForExit() const |
| 27 | { |
| 28 | WaitForSingleObject(m_processHandle, INFINITE); |
| 29 | DWORD exitCode{}; |
| 30 | GetExitCodeProcess(m_processHandle, &exitCode); |
| 31 | CloseHandle(m_processHandle); |
| 32 | return exitCode; |
| 33 | } |
| 34 | |
| 35 | [[nodiscard]] HANDLE Handle() const { return m_processHandle; } |
| 36 |
no outgoing calls
no test coverage detected