Fill Process on Windows

This commit is contained in:
2025-06-26 11:44:27 -05:00
parent 81f0d3be2e
commit dbfb7c1133
11 changed files with 659 additions and 62 deletions

View File

@ -10,17 +10,22 @@ class Process {
public:
std::string name;
std::vector<std::string> args;
std::string workingDirectory;
std::vector<std::pair<std::string,std::string>> env;
bool includeThisEnv;
bool redirectStdIn=false;
bool redirectStdOut=false;
bool redirectStdErr=false;
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM
Tesses::Framework::Streams::Stream* GetStdinStream(bool closeUnderlying=true);
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM
Tesses::Framework::Streams::Stream* GetStdoutStream(bool closeUnderlying=true);
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM
Tesses::Framework::Streams::Stream* GetStderrStream(bool closeUnderlying=true);
void CloseStdInNow();
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM OBJECT
Tesses::Framework::Streams::Stream* GetStdinStream();
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM OBJECT
Tesses::Framework::Streams::Stream* GetStdoutStream();
//YOU ARE RESPONSABLE FOR FREEING THIS STREAM OBJECT
Tesses::Framework::Streams::Stream* GetStderrStream();
Process();
Process(std::string name, std::vector<std::string> args,bool includeThisEnv=true);