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