mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
20 lines
421 B
C
20 lines
421 B
C
#ifndef _SysExec_ShellLib_h_
|
|
#define _SysExec_ShellLib_h_
|
|
|
|
#include <Core/Core.h>
|
|
|
|
#include "SysInfo.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
#ifdef PLATFORM_WIN32
|
|
|
|
// executes a command via shell "runas" as admin user;
|
|
// if wait is true, will wait for command end, otherwise executes it in background
|
|
bool ShellExec(String const &args, VectorMap<String, String> const &env, bool wait);
|
|
|
|
#endif
|
|
|
|
END_UPP_NAMESPACE
|
|
|
|
#endif
|