MCPcopy Create free account
hub / github.com/WinMerge/winmerge / launchProgram

Function launchProgram

Src/Environment.cpp:182–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static 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
198String ExpandEnvironmentVariables(const String& text)
199{

Callers 7

PrediffFileMethod · 0.85
UnpackFileMethod · 0.85
PackFileMethod · 0.85
IsFolderMethod · 0.85
UnpackFolderMethod · 0.85
LoadRegistryFromFileFunction · 0.85
SaveRegistryToFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected