![]() |
Deskflow 1.26.0.418
Keyboard and mouse sharing utility
|
#include <MSWindowsProcess.h>
Public Member Functions | |
| MSWindowsProcess (const std::wstring &command, HANDLE stdOutput=nullptr, HANDLE stdError=nullptr) | |
| ~MSWindowsProcess () | |
| BOOL | startInForeground () |
| BOOL | startAsUser (HANDLE userToken, LPSECURITY_ATTRIBUTES sa) |
| void | shutdown (int timeout=kDefaultShutdownTimeout) |
| DWORD | waitForExit () |
| void | createPipes () |
| std::wstring | readStdOutput () |
| std::wstring | readStdError () |
| PROCESS_INFORMATION | info () const |
Static Public Member Functions | |
| static void | shutdown (HANDLE handle, DWORD pid, int timeout=kDefaultShutdownTimeout) |
| static bool | startDetachedAsSessionUser (const std::wstring &command) |
|
explicit |
| deskflow::platform::MSWindowsProcess::~MSWindowsProcess | ( | ) |
| void deskflow::platform::MSWindowsProcess::createPipes | ( | ) |
|
inline |
| std::wstring deskflow::platform::MSWindowsProcess::readStdError | ( | ) |
| std::wstring deskflow::platform::MSWindowsProcess::readStdOutput | ( | ) |
|
static |
| void deskflow::platform::MSWindowsProcess::shutdown | ( | int | timeout = kDefaultShutdownTimeout | ) |
| BOOL deskflow::platform::MSWindowsProcess::startAsUser | ( | HANDLE | userToken, |
| LPSECURITY_ATTRIBUTES | sa ) |
|
static |
Launch command as a detached process under the active console user's token, so the child does not inherit the caller's (SYSTEM) privileges.
| BOOL deskflow::platform::MSWindowsProcess::startInForeground | ( | ) |
| DWORD deskflow::platform::MSWindowsProcess::waitForExit | ( | ) |