LearnWithTouch/App/LearnWithTouch_ios/Libraries/libil2cpp/include/os/Environment.h

35 lines
928 B
C
Raw Normal View History

2019-07-01 14:33:21 +02:00
#pragma once
#include "il2cpp-config.h"
#include <string>
#include <stdint.h>
#include <vector>
struct Il2CppArray;
namespace il2cpp
{
namespace os
{
class Environment
{
public:
static std::string GetMachineName();
static int32_t GetProcessorCount();
static std::string GetOsVersionString();
static std::string GetOsUserName();
static std::string GetEnvironmentVariable(const std::string& name);
static void SetEnvironmentVariable(const std::string& name, const std::string& value);
static std::vector<std::string> GetEnvironmentVariableNames();
static std::string GetHomeDirectory();
static std::vector<std::string> GetLogicalDrives();
static void Exit(int result);
static NORETURN void Abort();
static std::string GetWindowsFolderPath(int32_t folder);
#if NET_4_0
static bool Is64BitOs();
#endif
};
}
}