CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Environment services. This is a static type with no instance services. You should never create instances of it by any means. More...
#include <environment.h>
Public Types | |
enum class | SpecialFolder { Desktop = 0 , Programs = 2 , Personal = 5 , MyDocuments = 5 , Favorites = 6 , Startup = 7 , Recent = 8 , SendTo = 9 , StartMenu = 11 , MyMusic = 13 , DesktopDirectory = 16 , MyComputer = 17 , Templates = 21 , ApplicationData = 26 , LocalApplicationData = 28 , InternetCache = 32 , Cookies = 33 , History = 34 , CommonApplicationData = 35 , System = 37 , ProgramFiles = 38 , MyPictures = 39 , UserProfile = 40 , CommonProgramFiles = 43 } |
Represents system special folders. More... | |
Static Public Member Functions | |
static String | get_CommandLine () |
Returns the command line used to start the current process. More... | |
static String | get_CurrentDirectory () |
Returns the path to the current working directory. More... | |
static void | set_CurrentDirectory (const String &path) |
Sets the specified directory as the current working directory. More... | |
static int | get_ExitCode () |
Returns the exit code for the current process. More... | |
static void | set_ExitCode (int value) |
Sets the specified value as exit code for the current process. More... | |
static bool | get_HasShutdownStarted () |
Checks if shutdown is in progress. Not implemented. More... | |
static String | get_MachineName () |
Returns the NetBIOS name of this computer. More... | |
static String | get_NewLine () |
Returns the newline string set for the current environment. More... | |
static const OperatingSystem & | get_OSVersion () |
Returns the OperatingSystem object that contains information about the current operating system. More... | |
static int | get_ProcessorCount () |
Returns the number of processors or the current machine. More... | |
static String | get_StackTrace () |
Returns the string that contains the current stack trace inofrmation. More... | |
static String | get_SystemDirectory () |
Returns the path to the system directory. More... | |
static int | get_TickCount () |
Returns the number of milliseconds passed since the system started. More... | |
static String | get_UserDomainName () |
Returns the network domain name of the current user. More... | |
static bool | get_UserInteractive () |
Determines whether the current process is running in user interactive mode. More... | |
static String | get_UserName () |
Returns the name of the user currently logged on to the Windows OS. More... | |
static Version | get_Version () |
Returns the Version object that represents the information about the version of the common language runtime. The version number returned by this method is rather dummy and does not mean that all library classes behave in accordance with the returned version. More... | |
static int64_t | get_WorkingSet () |
Returns the amount of physical memory mapped to the process context. More... | |
static void | Exit (int exitCode) |
Terminates the current process and returns the specified exit code to the operating system. More... | |
static String | ExpandEnvironmentVariables (const String &name) |
Replaces the names of environment variables found in the specified string with the values of those variables and returns the resulting string. More... | |
static void | FailFast (const String &message) |
Aborts the current process. More... | |
static ArrayPtr< String > | GetCommandLineArgs () |
Returns an array containing the command-line arguments used to start the current process. More... | |
static String | GetEnvironmentVariable (const String &variable) |
Returns the value of the specified environment varibale associated with the current process. More... | |
static String | GetEnvironmentVariableA (const String &variable) |
Returns the value of the specified environment varibale associated with the current process. More... | |
static String | GetEnvironmentVariableW (const String &variable) |
Returns the value of the specified environment varibale associated with the current process. More... | |
static String | GetEnvironmentVariable (const String &variable, EnvironmentVariableTarget target) |
Returns the value of the specified environment varibale from the specified location. More... | |
static Collections::Generic::DictionaryPtr< String, String > | GetEnvironmentVariables () |
Returns a dictionary containing all environment variables names and their values associated with the current process. More... | |
static Collections::Generic::DictionaryPtr< String, String > | GetEnvironmentVariables (EnvironmentVariableTarget target) |
Returns a dictionary containing all environment variables' names and their values from the specified location. More... | |
static String | GetFolderPath (SpecialFolder folder) |
Returns fully qualified path to the specified system folder. More... | |
static ArrayPtr< String > | GetLogicalDrives () |
Returns an array containing the names of all logical drives on the current computer. More... | |
static void | SetEnvironmentVariable (const String &variable, const String &value) |
NOT IMPLEMENTED. More... | |
static void | SetEnvironmentVariable (const String &variable, const String &value, EnvironmentVariableTarget target) |
NOT IMPLEMENTED. More... | |
static bool | IsWindowsSubsystemForLinux () |
Returns true only for WSL. More... | |
static bool | get_Is64BitProcess () |
Returns true for 64-bit platform executables/libs. More... | |
Environment services. This is a static type with no instance services. You should never create instances of it by any means.
|
strong |
Represents system special folders.
|
static |
Terminates the current process and returns the specified exit code to the operating system.
exitCode | The exit code to be returned to the operating system |
Replaces the names of environment variables found in the specified string with the values of those variables and returns the resulting string.
name | The string containing the names of environment varibles |
name
with their values.
|
static |
Aborts the current process.
message | IGNORED |
|
static |
Returns the command line used to start the current process.
|
static |
Returns the path to the current working directory.
|
static |
Returns the exit code for the current process.
|
static |
Checks if shutdown is in progress. Not implemented.
|
static |
Returns true for 64-bit platform executables/libs.
|
static |
Returns the NetBIOS name of this computer.
|
static |
Returns the newline string set for the current environment.
|
static |
Returns the OperatingSystem object that contains information about the current operating system.
|
static |
Returns the number of processors or the current machine.
|
static |
Returns the string that contains the current stack trace inofrmation.
|
static |
Returns the path to the system directory.
|
static |
Returns the number of milliseconds passed since the system started.
|
static |
Returns the network domain name of the current user.
|
static |
Determines whether the current process is running in user interactive mode.
|
static |
Returns the name of the user currently logged on to the Windows OS.
|
static |
Returns the Version object that represents the information about the version of the common language runtime. The version number returned by this method is rather dummy and does not mean that all library classes behave in accordance with the returned version.
|
static |
Returns the amount of physical memory mapped to the process context.
Returns an array containing the command-line arguments used to start the current process.
Returns the value of the specified environment varibale associated with the current process.
variable | The string containing the name of the variable to retrieve |
|
static |
Returns the value of the specified environment varibale from the specified location.
variable | The string containing the name of the variable to retrieve |
target | The location of the variable |
Returns the value of the specified environment varibale associated with the current process.
variable | The string containing the name of the variable to retrieve |
|
static |
Returns a dictionary containing all environment variables names and their values associated with the current process.
|
static |
Returns a dictionary containing all environment variables' names and their values from the specified location.
target | The location of the variables |
Returns the value of the specified environment varibale associated with the current process.
variable | The string containing the name of the variable to retrieve |
|
static |
Returns fully qualified path to the specified system folder.
folder | Value representing the system folder |
Returns an array containing the names of all logical drives on the current computer.
|
static |
Returns true only for WSL.
|
static |
Sets the specified directory as the current working directory.
path | The fully qualified path to the directory to be set as current working directory |
|
static |
Sets the specified value as exit code for the current process.
value | The exit code to be set for the current process |
|
static |
NOT IMPLEMENTED.
|
static |
NOT IMPLEMENTED.