Badminton-Scoreboard/Libraries/libil2cpp/include/os/Process.h
2023-10-08 10:24:48 +08:00

25 lines
503 B
C++

#pragma once
#include "utils/Expected.h"
#include <stdint.h>
#include <string>
namespace il2cpp
{
namespace os
{
struct ProcessHandle;
class Process
{
public:
static int GetCurrentProcessId();
static utils::Expected<ProcessHandle*> GetProcess(int processId);
static void FreeProcess(ProcessHandle* handle);
static utils::Expected<std::string> GetProcessName(ProcessHandle* handle);
static intptr_t GetMainWindowHandle(int32_t pid);
};
}
}