Environment.h 928 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include "il2cpp-config.h"
  3. #include <string>
  4. #include <stdint.h>
  5. #include <vector>
  6. struct Il2CppArray;
  7. namespace il2cpp
  8. {
  9. namespace os
  10. {
  11. class Environment
  12. {
  13. public:
  14. static std::string GetMachineName();
  15. static int32_t GetProcessorCount();
  16. static std::string GetOsVersionString();
  17. static std::string GetOsUserName();
  18. static std::string GetEnvironmentVariable(const std::string& name);
  19. static void SetEnvironmentVariable(const std::string& name, const std::string& value);
  20. static std::vector<std::string> GetEnvironmentVariableNames();
  21. static std::string GetHomeDirectory();
  22. static std::vector<std::string> GetLogicalDrives();
  23. static void Exit(int result);
  24. static NORETURN void Abort();
  25. static std::string GetWindowsFolderPath(int32_t folder);
  26. #if NET_4_0
  27. static bool Is64BitOs();
  28. #endif
  29. };
  30. }
  31. }