MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / Execute

Class Execute

src/UtilityLib/Execute.h:7–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <shellapi.h>
6
7class Execute
8{
9public:
10 Execute(const TCHAR* cmd, const TCHAR* args, const TCHAR* cDir, bool show = false);
11
12 bool Run(bool isElevationRequired = false);
13 DWORD RunSync(bool isElevationRequired = false);
14
15private:
16 std::wstring m_Command;
17 std::wstring m_Args;
18 std::wstring m_CurDir;
19 bool m_bShow = false;
20 SHELLEXECUTEINFO m_ShExecInfo = {};
21};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected