HumanRender/human_render/Utils/ProcessWin.h
2024-12-20 01:46:41 +08:00

22 lines
406 B
C++

#pragma once
#include "Utils/Process.h"
#include <Windows.h>
class ProcessWin : public Process {
public:
ProcessWin();
ProcessWin(const std::string& path, const std::string& args = "", const std::string& workDir = "");
~ProcessWin() override;
protected:
bool OnExecute();
void OnTerminate();
private:
PROCESS_INFORMATION info_{0};
DISALLOW_COPY_AND_ASSIGN(ProcessWin);
};