| 180 | } |
| 181 | |
| 182 | static bool launchProgram(const String& sCmd, WORD wShowWindow) |
| 183 | { |
| 184 | STARTUPINFO stInfo = { sizeof(STARTUPINFO) }; |
| 185 | stInfo.dwFlags = STARTF_USESHOWWINDOW; |
| 186 | stInfo.wShowWindow = wShowWindow; |
| 187 | PROCESS_INFORMATION processInfo; |
| 188 | bool retVal = !!CreateProcess(nullptr, (tchar_t*)sCmd.c_str(), |
| 189 | nullptr, nullptr, FALSE, CREATE_DEFAULT_ERROR_MODE, nullptr, nullptr, |
| 190 | &stInfo, &processInfo); |
| 191 | if (!retVal) |
| 192 | return false; |
| 193 | CloseHandle(processInfo.hThread); |
| 194 | CloseHandle(processInfo.hProcess); |
| 195 | return true; |
| 196 | } |
| 197 | |
| 198 | String ExpandEnvironmentVariables(const String& text) |
| 199 | { |
no outgoing calls
no test coverage detected