Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
deskflow::platform::MSWindowsProcess Class Reference

#include <MSWindowsProcess.h>

Public Member Functions

 MSWindowsProcess (const std::string &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::string readStdOutput ()
std::string readStdError ()
PROCESS_INFORMATION info () const

Static Public Member Functions

static void shutdown (HANDLE handle, DWORD pid, int timeout=kDefaultShutdownTimeout)

Constructor & Destructor Documentation

◆ MSWindowsProcess()

deskflow::platform::MSWindowsProcess::MSWindowsProcess ( const std::string & command,
HANDLE stdOutput = nullptr,
HANDLE stdError = nullptr )
explicit

◆ ~MSWindowsProcess()

deskflow::platform::MSWindowsProcess::~MSWindowsProcess ( )

Member Function Documentation

◆ createPipes()

void deskflow::platform::MSWindowsProcess::createPipes ( )

◆ info()

PROCESS_INFORMATION deskflow::platform::MSWindowsProcess::info ( ) const
inline

◆ readStdError()

std::string deskflow::platform::MSWindowsProcess::readStdError ( )

◆ readStdOutput()

std::string deskflow::platform::MSWindowsProcess::readStdOutput ( )

◆ shutdown() [1/2]

void deskflow::platform::MSWindowsProcess::shutdown ( HANDLE handle,
DWORD pid,
int timeout = kDefaultShutdownTimeout )
static

◆ shutdown() [2/2]

void deskflow::platform::MSWindowsProcess::shutdown ( int timeout = kDefaultShutdownTimeout)

◆ startAsUser()

BOOL deskflow::platform::MSWindowsProcess::startAsUser ( HANDLE userToken,
LPSECURITY_ATTRIBUTES sa )

◆ startInForeground()

BOOL deskflow::platform::MSWindowsProcess::startInForeground ( )

◆ waitForExit()

DWORD deskflow::platform::MSWindowsProcess::waitForExit ( )

The documentation for this class was generated from the following files: