The environment class.
Classes | |
class | xtd_library |
Represents a xtd library that contains name, version and paths. More... | |
Public Static Events | |
static event< environment, signal_cancel_event_handler > | cancel_signal |
Occurs when a signal is sent to the current process. | |
static event< environment, program_exit_event_handler > | program_exit |
Occurs when the terminates normally (via xtd::environment::exit or returning from the main function). | |
Public Static Properties | |
static xtd::string | command_line () noexcept |
Gets the command line for this process. | |
static xtd::compiler | compiler_version () noexcept |
Gets an xtd::compiler object that contains the current compiler identifier and version number. | |
static xtd::cpp_language | cpp_version () noexcept |
Gets an xtd::cpp_language object that contains the current c++ standard identifier and version number. | |
static xtd::string | current_directory () |
Gets the fully qualified path of the current working directory. | |
static void | current_directory (const xtd::string &directory_name) |
Sets the fully qualified path of the current working directory. | |
static int32 | current_managed_thread_id () noexcept |
Gets a unique identifier for the current managed thread. | |
static intptr | current_thread_id () noexcept |
Gets a unique identifier for the current thread. | |
static int32 | exit_code () noexcept |
Gets the exit code of the process. | |
static void | exit_code (int32 value) noexcept |
Sets the exit code of the process. | |
static bool | has_shutdown_started () |
Gets a value that indicates whether the current application domain is shutting down. | |
static bool | is_64_bit_operating_system () noexcept |
Determines whether the current operating system is a 64-bit operating system. | |
static bool | is_64_bit_process () noexcept |
Determines whether the current process is a 64-bit process. | |
static std::locale | locale () noexcept |
Gets a copy of the global C++ locale, which is the locale most recently used as the argument to See std::locale::global or a copy of See std::locale::classic() if no call to See std::locale::global has been made. | |
static xtd::string | machine_name () |
Gets the NetBIOS name of this local computer. | |
static xtd::string | new_line () noexcept |
Gets the newline string defined for this environment. | |
template<typename char_t , class traits_t > | |
static std::basic_ostream< char_t, traits_t > & | new_line (std::basic_ostream< char_t, traits_t > &os) |
Inserts a new-line character. | |
static xtd::operating_system | os_version () noexcept |
Gets an xtd::operating_system object that contains the current platform identifier and version number. | |
static uint32 | processor_count () |
Gets the number of processors on the current machine. | |
static xtd::processor | processor_information () |
Gets an xtd::processor object that contains the processor identifier. | |
static xtd::string | stack_trace () |
Gets current stack trace information. | |
static xtd::string | system_directory () |
Gets the fully qualified path of the system directory. | |
static size_t | system_page_size () |
Gets the number of bytes in the operating system's memory page. | |
static xtd::target_type | target_type () noexcept |
Gets an xtd::target_type object that contains the current target identifier. | |
static std::chrono::milliseconds | tick_count () |
Gets the number of milliseconds elapsed since the system started. | |
static xtd::toolkit | toolkit_version () |
Gets the current toolkit version. | |
static bool | user_administrator () |
Gets a value indicating whether the current user is an administrator. | |
static xtd::string | user_domain_name () |
Gets the network domain name associated with the current user. | |
static bool | user_interactive () |
Gets a value indicating whether the current process is running in user interactive mode. | |
static xtd::string | user_name () |
Gets the user name of the person who is currently logged on to the operating system. | |
static xtd::version | version () noexcept |
Gets a version consisting of the major, minor, build, and revision numbers of the xtd framework. | |
static int64 | working_set () |
Gets the amount of physical memory mapped to the process context. | |
static const xtd_library_collection & | xtd_libraries () noexcept |
Gets an xtd::environment::xtd_library array that represent the xtd libraries name, version and paths. | |
Public Static Methods | |
static void | abort () |
Causes abnormal program termination unless xtd::signal::abnormal_termination is being caught by a xtd::environment::cancel_signal event. | |
static void | exit () |
Terminates this process and returns an exit code to the operating system. | |
static void | exit (int32 exit_code) |
Terminates this process and returns an exit code to the operating system. | |
static void | exit (xtd::exit_status exit_status) |
Terminates this process and returns an exit status to the operating system. | |
static xtd::string | expand_environment_variables (const xtd::string &name) |
Replaces the name of each environment variable embedded in the specified string with the string equivalent of the value of the variable, then returns the resulting string. | |
static xtd::collections::specialized::string_collection | get_command_line_args () |
Returns a string array containing the command-line arguments for the current process. | |
static xtd::string | get_environment_variable (const xtd::string &variable) |
Retrieves the value of an environment variable from the current process. | |
static xtd::string | get_environment_variable (const xtd::string &variable, environment_variable_target target) |
Retrieves the value of an environment variable from the current process or from the Windows operating system registry key for the current user or local machine. | |
static std::map< std::string, std::string > & | get_environment_variables () |
Retrieves all environment variable names and their values from the current process. | |
static std::map< std::string, std::string > & | get_environment_variables (environment_variable_target target) |
Retrieves all environment variable names and their values from the current process, or from the Windows operating system registry key for the current user or local machine. | |
static xtd::string | get_folder_path (environment::special_folder folder) |
Gets the path to the system special folder that is identified by the specified enumeration. | |
static xtd::string | get_folder_path (environment::special_folder folder, environment::special_folder_option option) |
Gets the path to the system special folder that is identified by the specified enumeration, and uses a specified option for accessing special folders. | |
static xtd::collections::specialized::string_collection | get_logical_drives () |
Returns an array of string containing the names of the logical drives on the current computer. | |
static void | quick_exit () noexcept |
Terminates this process and returns an exit code to the operating system without completely cleaning the resources.. | |
static void | quick_exit (int32 exit_code) noexcept |
Terminates this process and returns an exit code to the operating system without completely cleaning the resources.. | |
static void | quick_exit (xtd::exit_status exit_status) noexcept |
Terminates this process and returns an exit status to the operating system without completely cleaning the resources.. | |
static void | raise (xtd::signal signal) |
Sends xtd::signal to the program. The xtd::environment::cancel_signal event is invoked with the specified signal. | |
static void | set_environment_variable (const xtd::string &variable, const xtd::string &value) |
Creates, modifies, or deletes an environment variable stored in the current process. | |
static void | set_environment_variable (const xtd::string &variable, const xtd::string &value, environment_variable_target target) |
Creates, modifies, or deletes an environment variable stored in the current process or in the Windows operating system registry key reserved for the current user or local machine. | |
using xtd::environment::xtd_library_collection = std::vector<xtd_library> |
Represents a xtd libraries collection.
|
strong |
Specifies enumerated constants used to retrieve directory paths to system special folders.
Name | android | iOS | Linux | macOS | Windows |
---|---|---|---|---|---|
desktop | /home/${User}/Desktop | /Users/${User}/Desktop | /home/${User}/Desktop | /Users/${User}/Desktop | C:\Users\${User}\Desktop |
programs | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs | ||||
my_documents | /home/${User} | /Users/${User} | /home/${User} | /Users/${User} | C:\Users\${User}\Documents |
personal | /home/${User} | /Users/${User} | /home/${User} | /Users/${User} | C:\Users\${User}\Documents |
favorites | /Users/${User}/Library/Favorites | /Users/${User}/Library/Favorites | C:\Users\${User}\Favorites | ||
startup | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | ||||
recent | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Recent | ||||
send_to | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\SendTo | ||||
start_menu | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Start Menu | ||||
my_music | /home/${User}/Music | /Users/${User}/Music | /home/${User}/Music | /Users/${User}/Music | C:\Users\${User}\Music |
my_videos | /home/${User}/Movies | /Users/${User}/Movies | /home/${User}/Movies | /Users/${User}/Movies | C:\Users\${User}\Movies |
desktop_directory | /home/${User}/Desktop | /Users/${User}/Desktop | /home/${User}/Desktop | /Users/${User}/Desktop | C:\Users\${User}\Desktop |
my_computer | |||||
network_shortcuts | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Network Shortcuts | ||||
fonts | /home/${User}/.fonts | /Users/${User}/Library/Fonts | /home/${User}/.fonts | /Users/${User}/Library/Fonts | C:\Windows\Fonts |
templates | /home/${User}/Templates | /Users/${User}/Templates | /home/${User}/Templates | /Users/${User}/Templates | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Templates |
common_start_menu | C:\ProgramData\Microsoft\Windows\Start Menu | ||||
common_programs | C:\ProgramData\Microsoft\Windows\Start Menu\Programs | ||||
common_startup | C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup | ||||
common_desktop_directory | C:\Users\Public\Desktop | ||||
application_data | /home/${User}/.config | /Users/${User}/.config | /home/${User}/.config | /Users/${User}//Library/Preferences | C:\Users\${User}\AppData\Roaming |
printer_shortcuts | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Printer Shortcuts | ||||
local_application_data | /home/${User}/.local/share | /Users/${User}/.local/share | /home/${User}/.local/share | /Users/${User}/.local/share | C:\Users\${User}\AppData\Local |
internet_cache | /Users/${User}/Library/Caches | /Users/${User}/Library/Caches | C:\Users\${User}\AppData\Local\Microsoft\Windows\Temporary Internet Files | ||
cookies | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Cookies | ||||
history | C:\Users\${User}\AppData\Local\Microsoft\Windows\History | ||||
common_application_data | /usr/share | /usr/share | /usr/share | /usr/share | C:\ProgramData |
windows | C:\Windows | ||||
system | /System | /System | C:\Windows\system32 | ||
program_files | /Applications | /Applications | C:\Program Files (x86) | ||
my_pictures | /home/${User}/Pictures | /Users/${User}/Pictures | /home/${User}/Pictures | /Users/${User}/Pictures | C:\Users\${User}\Pictures |
user_profile | /home/${User} | /Users/${User} | /home/${User} | /Users/${User} | C:\Users\${User} |
system_x86 | C:\Windows\SysWOW64 | ||||
program_files_x86 | C:\Program Files (x86) | ||||
common_program_files | C:\Program Files (x86)\Common Files | ||||
common_program_files_x86 | C:\Program Files (x86)\Common Files | ||||
common_templates | /usr/share/templates | /usr/share/templates | C:\ProgramData\Microsoft\Windows\Templates | ||
common_documents | C:\Users\Public\Documents | ||||
common_admin_tools | C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools | ||||
admin_tools | C:\Users\${User}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools | ||||
common_music | C:\Users\Public\Music | ||||
common_pictures | C:\Users\Public\Pictures | ||||
common_videos | C:\Users\Public\Videos | ||||
resources | C:\Windows\resources | ||||
localized_resources | |||||
common_oem_links | |||||
cd_burning | C:\Users\${User}\AppData\Local\Microsoft\Windows\Burn\Burn | ||||
xtd_install ** | /usr/local | /usr/local | /usr/local | /usr/local | C:\Program Files\xtd |
xtd_locale ** | /usr/local/share/xtd/locale | /usr/local/share/xtd/locale | /usr/local/share/xtd/locale | /usr/local/share/xtd/locale | C:\Program Files\xtd\locale |
xtd_reference_guide ** | /usr/local/share/xtd/reference_guide | /usr/local/share/xtd/reference_guide | /usr/local/share/xtd/reference_guide | /usr/local/share/xtd/reference_guide | C:\Program Files\xtd\reference_guide |
xtd_themes ** | /usr/local/share/xtd/themes | /usr/local/share/xtd/themes | /usr/local/share/xtd/themes | /usr/local/share/xtd/themes | C:\Program Files\xtd\themes |
xtd_include ** | /usr/local/include | /usr/local/include | /usr/local/include | /usr/local/include | C:\Program Files\xtd |
xtd_libraries ** | /usr/local/lib | /usr/local/lib | /usr/local/lib | /usr/local/lib | C:\Program Files\xtd\lib |
xtd_resources ** | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | C:\Program Files\xtd\resources |
xtd_console_include ** | /usr/local/include | /usr/local/include | /usr/local/include | /usr/local/include | C:\Program Files\xtd |
xtd_console_libraries ** | /usr/local/lib | /usr/local/lib | /usr/local/lib | /usr/local/lib | C:\Program Files\xtd\lib |
xtd_drawing_include ** | /usr/local/include | /usr/local/include | /usr/local/include | /usr/local/include | C:\Program Files\xtd |
xtd_drawing_libraries ** | /usr/local/lib | /usr/local/lib | /usr/local/lib | /usr/local/lib | C:\Program Files\xtd\lib |
xtd_drawing_resources ** | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | C:\Program Files\xtd\resources |
xtd_forms_include ** | /usr/local/include | /usr/local/include | /usr/local/include | /usr/local/include | C:\Program Files\xtd |
xtd_forms_libraries ** | /usr/local/lib | /usr/local/lib | /usr/local/lib | /usr/local/lib | C:\Program Files\xtd\lib |
xtd_forms_resources ** | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | /usr/local/share/xtd/resources | C:\Program Files\xtd\resources |
xtd_tunit_include ** | /usr/local/include | /usr/local/include | /usr/local/include | /usr/local/include | C:\Program Files\xtd |
xtd_tunit_libraries ** | /usr/local/lib | /usr/local/lib | /usr/local/lib | /usr/local/lib | C:\Program Files\xtd\lib |
Enumerator | |
---|---|
desktop | The logical Desktop rather than the physical file system location. |
programs | The directory that contains the user's program groups. |
my_documents | The My Documents folder. This member is equivalent to Personal. |
personal | The directory that serves as a common repository for documents. This member is equivalent to MyDocuments. |
favorites | The directory that serves as a common repository for the user's favorite items. |
startup | The directory that corresponds to the user's Startup program group. The system starts these programs whenever a user logs on or starts Windows NT or later, or starts Windows 98. |
recent | The directory that contains the user's most recently used documents. |
send_to | The directory that contains the Send To menu items. |
start_menu | The directory that contains the Start menu items. |
my_music | The My Music folder. |
my_videos | The file system directory that serves as a repository for videos that belong to a user. |
desktop_directory | The directory used to physically store file objects on the desktop. Do not confuse this directory with the desktop folder itself, which is a virtual folder. |
my_computer | The My Computer folder. The MyComputer constant always yields the empty string ("") because no path is defined for the My Computer folder. |
network_shortcuts | A file system directory that contains the link objects that may exist in the My Network Places virtual folder. |
fonts | A virtual folder that contains fonts. |
templates | The directory that serves as a common repository for document templates. |
common_start_menu | The file system directory that contains the programs and folders that appear on the Start menu for all users. This special folder is valid only for Windows NT systems. |
common_programs | A folder for components that are shared across applications. This special folder is valid only for Windows NT, Windows 2000, and Windows XP systems. |
common_startup | The file system directory that contains the programs that appear in the Startup folder for all users. This special folder is valid only for Windows NT systems. |
common_desktop_directory | The file system directory that contains files and folders that appear on the desktop for all users. This special folder is valid only for Windows NT systems. |
application_data | The directory that serves as a common repository for application-specific data for the current roaming user. A roaming user works on more than one computer on a network. A roaming user's profile is kept on a server on the network and is loaded onto a system when the user logs on. |
printer_shortcuts | The file system directory that contains the link objects that can exist in the Printers virtual folder. |
local_application_data | The directory that serves as a common repository for application-specific data that is used by the current, non-roaming user. |
internet_cache | The directory that serves as a common repository for temporary Internet files. |
cookies | The directory that serves as a common repository for Internet cookies. |
history | The directory that serves as a common repository for Internet history items. |
common_application_data | The directory that serves as a common repository for application-specific data that is used by all users. |
windows | The Windows directory or SYSROOT. This corresponds to the windir% or SYSTEMROOT% environment variables. |
system | The System directory. |
program_files | The program files directory.On a non-x86 system, passing ProgramFiles to the GetFolderPath method returns the path for non-x86 programs. To get the x86 program files directory on a non-x86 system, use the ProgramFilesX86 member. |
my_pictures | The My Pictures folder. |
user_profile | The user's profile folder. Applications should not create files or folders at this level; they should put their data under the locations referred to by ApplicationData. |
system_x86 | The Windows System folder. |
program_files_x86 | The Program Files folder On an x86 system, passing the ProgramFilesX86 member to the Environment.GetFolderPath method returns string.Empty; use the ProgramFiles member instead. You can determine whether Windows is a 32-bit operating system by calling the Environment.Is64BitOperatingSystem property. |
common_program_files | The directory for components that are shared across applications.To get the x86 common program files directory on a non-x86 system, use the ProgramFilesX86 member. |
common_program_files_x86 | The Program Files folder. |
common_templates | The file system directory that contains the templates that are available to all users. This special folder is valid only for Windows NT systems. |
common_documents | The file system directory that contains documents that are common to all users. This special folder is valid for Windows NT systems, Windows 95, and Windows 98 systems with Shfolder.dll installed. |
common_admin_tools | The file system directory that contains administrative tools for all users of the computer. |
admin_tools | The file system directory that is used to store administrative tools for an individual user. The Microsoft Management Console (MMC) will save customized consoles to this directory, and it will roam with the user. |
common_music | The file system directory that serves as a repository for music files common to all users. |
common_pictures | The file system directory that serves as a repository for image files common to all users. |
common_videos | The file system directory that serves as a repository for video files common to all users. |
resources | The file system directory that contains resource data. |
localized_resources | The file system directory that contains localized resource data. |
common_oem_links | This value is recognized in Windows Vista for backward compatibility, but the special folder itself is no longer used. |
cd_burning | The file system directory that acts as a staging area for files waiting to be written to a CD. |
home | The file system directory that contains home folder. |
application_resources | The application resources folder. |
xtd_install | The installation folder of xtd. |
xtd_locale | The xtd locale folder. |
xtd_reference_guide | The xtd reference guide folder. |
xtd_themes | The xtd themes folder. |
xtd_include | The xtd inlude folder. |
xtd_libraries | The xtd libraries folder. |
xtd_resources | The xtd resources folder. |
xtd_console_include | The xtd::console include folder. |
xtd_console_libraries | The xtd::console libraries folder. |
xtd_drawing_include | The xtd::drawing include folder. |
xtd_drawing_libraries | The xtd::drawing libraries folder. |
xtd_drawing_resources | The xtd::drawing resources folder. |
xtd_forms_include | The xtd::forms include folder. |
xtd_forms_libraries | The xtd::forms libraries folder. |
xtd_forms_resources | The xtd::forms resources folder. |
xtd_tunit_include | The xtd::tunit include folder. |
xtd_tunit_libraries | The xtd::tunit libraries folder. |
|
strong |
Specifies options to use for getting the path to a special folder.
|
staticnoexcept |
Gets the command line for this process.
|
inlinestaticnoexcept |
Gets an xtd::compiler object that contains the current compiler identifier and version number.
|
inlinestaticnoexcept |
Gets an xtd::cpp_language object that contains the current c++ standard identifier and version number.
|
static |
Gets the fully qualified path of the current working directory.
xtd::not_supported_exception | The operating system does not have current directory functionality. |
|
static |
Sets the fully qualified path of the current working directory.
directory_name | A string containing a directory path. |
xtd::argument_exception | Attempted to set to an empty string (""). |
xtd::io::io_exception | An I/O error occurred. |
xtd::io::directory_not_found_exception | Attempted to set a local path that cannot be found. |
xtd::security::security_exception | The caller does not have the appropriate permission. |
|
staticnoexcept |
Gets a unique identifier for the current managed thread.
|
staticnoexcept |
Gets a unique identifier for the current thread.
|
staticnoexcept |
Gets the exit code of the process.
|
staticnoexcept |
Sets the exit code of the process.
value | A 32-bit signed integer containing the exit code. The default value is 0 (zero), which indicates that the process completed successfully. |
|
static |
Gets a value that indicates whether the current application domain is shutting down.
|
staticnoexcept |
Determines whether the current operating system is a 64-bit operating system.
|
staticnoexcept |
Determines whether the current process is a 64-bit process.
|
staticnoexcept |
Gets a copy of the global C++ locale, which is the locale most recently used as the argument to See std::locale::global or a copy of See std::locale::classic() if no call to See std::locale::global has been made.
|
static |
Gets the NetBIOS name of this local computer.
|
staticnoexcept |
Gets the newline string defined for this environment.
|
inlinestatic |
Inserts a new-line character.
os | Output stream object affected. Because this function is a manipulator, it is designed to be used alone with no arguments in conjunction with the insertion (<<) operations on output streams (see example below). |
|
staticnoexcept |
Gets an xtd::operating_system object that contains the current platform identifier and version number.
|
static |
Gets the number of processors on the current machine.
|
static |
Gets an xtd::processor object that contains the processor identifier.
|
static |
Gets current stack trace information.
|
static |
Gets the fully qualified path of the system directory.
|
static |
Gets the number of bytes in the operating system's memory page.
|
inlinestaticnoexcept |
Gets an xtd::target_type object that contains the current target identifier.
|
static |
Gets the number of milliseconds elapsed since the system started.
|
static |
Gets the current toolkit version.
|
static |
Gets a value indicating whether the current user is an administrator.
|
static |
Gets the network domain name associated with the current user.
|
static |
Gets a value indicating whether the current process is running in user interactive mode.
|
static |
Gets the user name of the person who is currently logged on to the operating system.
|
staticnoexcept |
Gets a version consisting of the major, minor, build, and revision numbers of the xtd framework.
|
static |
Gets the amount of physical memory mapped to the process context.
|
staticnoexcept |
Gets an xtd::environment::xtd_library array that represent the xtd libraries name, version and paths.
|
static |
Causes abnormal program termination unless xtd::signal::abnormal_termination is being caught by a xtd::environment::cancel_signal event.
|
static |
Terminates this process and returns an exit code to the operating system.
|
static |
Terminates this process and returns an exit code to the operating system.
exit_code | The exit code to return to the operating system. Use 0 (zero) to indicate that the process completed successfully. |
|
static |
Terminates this process and returns an exit status to the operating system.
exit_status | One of xtd::exit_status values. |
|
static |
Replaces the name of each environment variable embedded in the specified string with the string equivalent of the value of the variable, then returns the resulting string.
name | A string containing the names of zero or more environment variables. Each environment variable is quoted with the percent sign character (%). |
|
static |
Returns a string array containing the command-line arguments for the current process.
Resulting command line arguments
MyApp alpha beta
MyApp, alpha, beta
MyApp "alpha with spaces" "beta with spaces"
MyApp, alpha with spaces, beta with spaces
MyApp 'alpha with spaces' beta
MyApp, 'alpha, with, spaces', beta
MyApp \\alpha \\"beta
MyApp, \\alpha, \beta
MyApp \\"alpha "beta
MyApp, \"alpha, "beta
|
static |
Retrieves the value of an environment variable from the current process.
variable | The name of the environment variable. |
|
static |
Retrieves the value of an environment variable from the current process or from the Windows operating system registry key for the current user or local machine.
variable | The name of an environment variable. |
target | One of the EnvironmentVariableTarget values. |
std::invalid_argument | target is not a valid environment_variable_target value. |
|
static |
Retrieves all environment variable names and their values from the current process.
|
static |
Retrieves all environment variable names and their values from the current process, or from the Windows operating system registry key for the current user or local machine.
target | One of the environment_variable_target values. |
std::invalid_argument | target is not a valid environment_variable_target value. |
|
inlinestatic |
Gets the path to the system special folder that is identified by the specified enumeration.
folder | One of enumeration values that identifies a system special folder. |
|
inlinestatic |
Gets the path to the system special folder that is identified by the specified enumeration, and uses a specified option for accessing special folders.
folder | One of the enumeration values that identifies a system special folder. |
option | One of the enumeration values that specifies options to use for accessing a special folder. |
|
static |
Returns an array of string containing the names of the logical drives on the current computer.
|
staticnoexcept |
Terminates this process and returns an exit code to the operating system without completely cleaning the resources..
|
staticnoexcept |
Terminates this process and returns an exit code to the operating system without completely cleaning the resources..
exit_code | The exit code to return to the operating system. Use 0 (zero) to indicate that the process completed successfully. |
|
staticnoexcept |
Terminates this process and returns an exit status to the operating system without completely cleaning the resources..
exit_status | One of xtd::exit_status values. |
|
static |
Sends xtd::signal to the program. The xtd::environment::cancel_signal event is invoked with the specified signal.
signal | One of xtd::signal values that represents the signal sent to the program. |
|
static |
Creates, modifies, or deletes an environment variable stored in the current process.
variable | The name of an environment variable. |
value | A value to assign to variable. |
|
static |
Creates, modifies, or deletes an environment variable stored in the current process or in the Windows operating system registry key reserved for the current user or local machine.
variable | The name of an environment variable. |
value | A value to assign to variable. |
|
static |
Occurs when a signal is sent to the current process.
|
static |
Occurs when the terminates normally (via xtd::environment::exit or returning from the main function).