Process.h 593 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <stdint.h>
  3. #include <string>
  4. namespace il2cpp
  5. {
  6. namespace os
  7. {
  8. struct ProcessHandle;
  9. class Process
  10. {
  11. public:
  12. static int GetCurrentProcessId();
  13. static ProcessHandle* GetProcess(int processId);
  14. static void FreeProcess(ProcessHandle* handle);
  15. static std::string GetProcessName(ProcessHandle* handle);
  16. static int64_t Times(ProcessHandle* handle, int32_t type);
  17. static int64_t StartTime(ProcessHandle* handle);
  18. static int64_t GetProcessData(int32_t pid, int32_t data_type, int32_t* error);
  19. };
  20. }
  21. }