Core/Process: Add Exists function

This commit is contained in:
SirLynix
2024-01-23 11:35:35 +01:00
committed by Jérôme Leclercq
parent b0648918a7
commit b63c9fcc49
6 changed files with 44 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ namespace Nz
Process& operator=(const Process&) = delete;
Process& operator=(Process&&) = delete;
static Result<bool, std::string> Exists(Pid pid);
static Pid GetCurrentPid();
static Result<Pid, std::string> SpawnDetached(const std::filesystem::path& program, std::span<const std::string> arguments = {}, const std::filesystem::path& workingDirectory = {});
};