Monitors and controls a core process on Windows, elevating if necessary.
More...
#include <MSWindowsWatchdog.h>
Monitors and controls a core process on Windows, elevating if necessary.
◆ MSWindowsWatchdog()
MSWindowsWatchdog::MSWindowsWatchdog |
( |
bool | foreground, |
|
|
FileLogOutputter & | fileLogOutputter ) |
|
explicit |
◆ ~MSWindowsWatchdog()
MSWindowsWatchdog::~MSWindowsWatchdog |
( |
| ) |
|
|
default |
◆ 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: