MCPcopy Create free account
hub / github.com/LegacyUpdate/LegacyUpdate / Exec

Function Exec

shared/Exec.c:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "Exec.h"
3
4HRESULT 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
15HRESULT ExecEx(LPSHELLEXECUTEINFO execInfo, BOOL wait, LPDWORD exitCode) {
16 if (wait) {

Callers 6

StartLauncherFunction · 0.85
RegisterDllExternalFunction · 0.85
LaunchOptionsFunction · 0.85
HandleIENotInstalledFunction · 0.85
SelfElevateFunction · 0.85
ViewLogFunction · 0.85

Calls 1

ExecExFunction · 0.85

Tested by

no test coverage detected