NativeMethods.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "il2cpp-object-internals.h"
  3. namespace il2cpp
  4. {
  5. namespace icalls
  6. {
  7. namespace System
  8. {
  9. namespace Microsoft
  10. {
  11. namespace Win32
  12. {
  13. class LIBIL2CPP_CODEGEN_API NativeMethods
  14. {
  15. public:
  16. static bool CloseProcess(intptr_t handle);
  17. static bool GetExitCodeProcess(intptr_t processHandle, int32_t* exitCode);
  18. static bool GetProcessTimes(intptr_t handle, int64_t* creation, int64_t* exit, int64_t* kernel, int64_t* user);
  19. static bool GetProcessWorkingSetSize(intptr_t handle, intptr_t* min, intptr_t* max);
  20. static bool SetPriorityClass(intptr_t handle, int32_t priorityClass);
  21. static bool SetProcessWorkingSetSize(intptr_t handle, intptr_t min, intptr_t max);
  22. static bool TerminateProcess(intptr_t processHandle, int32_t exitCode);
  23. static int32_t GetCurrentProcessId();
  24. static int32_t GetPriorityClass(intptr_t handle);
  25. static int32_t WaitForInputIdle(intptr_t handle, int32_t milliseconds);
  26. static intptr_t GetCurrentProcess();
  27. };
  28. } // namespace Win32
  29. } // namespace Microsoft
  30. } // namespace System
  31. } // namespace icalls
  32. } // namespace il2cpp