NativeMethods.h 419 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <stdint.h>
  3. #include "os/Process.h"
  4. #include <vector>
  5. #include <string>
  6. namespace il2cpp
  7. {
  8. namespace os
  9. {
  10. class NativeMethods
  11. {
  12. public:
  13. static bool CloseProcess(ProcessHandle* handle);
  14. static bool GetExitCodeProcess(ProcessHandle* handle, int32_t* exitCode);
  15. static int32_t GetCurrentProcessId();
  16. static ProcessHandle* GetCurrentProcess();
  17. };
  18. }
  19. }