| 2 | #include "Exec.h" |
| 3 | |
| 4 | HRESULT Exec(LPCWSTR verb, LPCWSTR file, LPCWSTR params, LPCWSTR workingDir, int show, BOOL wait, LPDWORD exitCode) { |
| 5 | SHELLEXECUTEINFO execInfo = {0}; |
| 6 | execInfo.cbSize = sizeof(execInfo); |
| 7 | execInfo.lpVerb = verb; |
| 8 | execInfo.lpFile = file; |
| 9 | execInfo.lpParameters = params; |
| 10 | execInfo.lpDirectory = workingDir; |
| 11 | execInfo.nShow = show; |
| 12 | return ExecEx(&execInfo, wait, exitCode); |
| 13 | } |
| 14 | |
| 15 | HRESULT ExecEx(LPSHELLEXECUTEINFO execInfo, BOOL wait, LPDWORD exitCode) { |
| 16 | if (wait) { |
no test coverage detected