// Process monitoring bool startWatching(int intervalMs = 1000); void stopWatching(); bool isProcessRunning() const;
GameProcessWatcher::~GameProcessWatcher() stopWatching(); closeProcessHandle();
bool GameProcessWatcher::isProcessRunning() const if (m_processId == 0) return false; HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION
#pragma once #include <string> #include <thread> #include <mutex> #include <functional> #include <vector> #include <windows.h>