NativeMethods.h 481 B

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