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