Process.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #pragma once
  2. #include <stdint.h>
  3. #include "il2cpp-config.h"
  4. #include "il2cpp-object-internals.h"
  5. struct Il2CppObject;
  6. struct Il2CppDelegate;
  7. struct Il2CppReflectionType;
  8. struct Il2CppReflectionMethod;
  9. struct Il2CppReflectionField;
  10. struct Il2CppArray;
  11. struct Il2CppException;
  12. struct Il2CppReflectionModule;
  13. struct Il2CppAssembly;
  14. struct Il2CppAssemblyName;
  15. struct Il2CppAppDomain;
  16. namespace il2cpp
  17. {
  18. namespace icalls
  19. {
  20. namespace System
  21. {
  22. namespace System
  23. {
  24. namespace Diagnostics
  25. {
  26. struct ProcInfo;
  27. class LIBIL2CPP_CODEGEN_API Process
  28. {
  29. public:
  30. static Il2CppArray* GetProcesses_internal();
  31. static int32_t GetPid_internal();
  32. static bool CreateProcess_internal(void* /* System.Diagnostics.ProcessStartInfo */ startInfo, intptr_t _stdin, intptr_t _stdout, intptr_t _stderr, ProcInfo* proc_info);
  33. static int64_t ExitTime_internal(intptr_t handle);
  34. static Il2CppArray* GetModules_internal(void* /* System.Diagnostics.Process */ self, intptr_t handle);
  35. static int32_t GetPriorityClass(intptr_t handle, int32_t* error);
  36. static int64_t GetProcessData(int32_t pid, int32_t data_type, int32_t* error);
  37. static intptr_t GetProcess_internal(int32_t pid);
  38. static bool GetWorkingSet_internal(intptr_t handle, int32_t* min, int32_t* max);
  39. static bool Kill_internal(intptr_t handle, int32_t signo);
  40. static Il2CppString* ProcessName_internal(intptr_t handle);
  41. static void Process_free_internal(void* /* System.Diagnostics.Process */ self, intptr_t handle);
  42. static bool SetPriorityClass(intptr_t handle, int32_t priority, int32_t* error);
  43. static bool SetWorkingSet_internal(intptr_t handle, int32_t min, int32_t max, bool use_min);
  44. static bool ShellExecuteEx_internal(void* /* System.Diagnostics.ProcessStartInfo */ startInfo, ProcInfo* proc_info);
  45. static int64_t StartTime_internal(intptr_t handle);
  46. static int64_t Times(intptr_t handle, int32_t type);
  47. static bool WaitForExit_internal(void* /* System.Diagnostics.Process */ self, intptr_t handle, int32_t ms);
  48. static bool WaitForInputIdle_internal(void* /* System.Diagnostics.Process */ self, intptr_t handle, int32_t ms);
  49. static int32_t ExitCode_internal(intptr_t handle);
  50. };
  51. } /* namespace Diagnostics */
  52. } /* namespace System */
  53. } /* namespace System */
  54. } /* namespace icalls */
  55. } /* namespace il2cpp */