Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
MSWindowsWatchdog Class Reference

Monitors and controls a core process on Windows, elevating if necessary. More...

#include <MSWindowsWatchdog.h>

Public Member Functions

 MSWindowsWatchdog (bool foreground, FileLogOutputter &fileLogOutputter)
 ~MSWindowsWatchdog ()=default
void startAsync ()
 Start threads for main loop and and output loop.
void setProcessConfig (const std::string_view &command, bool elevate)
 Set the command to run and whether to elevate the process.
void stop ()
 Stop the main loop and output loop threads.
bool isProcessRunning ()

Detailed Description

Monitors and controls a core process on Windows, elevating if necessary.

Constructor & Destructor Documentation

◆ MSWindowsWatchdog()

MSWindowsWatchdog::MSWindowsWatchdog ( bool foreground,
FileLogOutputter & fileLogOutputter )
explicit

◆ ~MSWindowsWatchdog()

MSWindowsWatchdog::~MSWindowsWatchdog ( )
default

Member Function Documentation

◆ isProcessRunning()

bool MSWindowsWatchdog::isProcessRunning ( )
Returns
True if the process is running.

◆ setProcessConfig()

void MSWindowsWatchdog::setProcessConfig ( const std::string_view & command,
bool elevate )

Set the command to run and whether to elevate the process.

◆ startAsync()

void MSWindowsWatchdog::startAsync ( )

Start threads for main loop and and output loop.

◆ stop()

void MSWindowsWatchdog::stop ( )

Stop the main loop and output loop threads.


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