Process.h 362 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <string>
  3. namespace il2cpp
  4. {
  5. namespace os
  6. {
  7. struct ProcessHandle;
  8. class Process
  9. {
  10. public:
  11. static int GetCurrentProcessId();
  12. static ProcessHandle* GetProcess(int processId);
  13. static void FreeProcess(ProcessHandle* handle);
  14. static std::string GetProcessName(ProcessHandle* handle);
  15. };
  16. }
  17. }