NativeMethods.h 1.1 KB

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