Contains environment native API.
Protected Static Methods | |
static int32_t | at_quick_exit (void(*on_quick_exit)(void)) |
Registers the function pointed to by func to be called on quick program termination (via xtd::native::environment::quick_exit). | |
static std::vector< std::string > | get_command_line_args () |
Returns a string array containing the command-line arguments for the current process. | |
static std::string | get_desktop_environment () |
Gets the desktop environment name. | |
static std::string | get_desktop_theme () |
Gets the desktop theme name. | |
static std::string | get_distribution_bug_report () |
Gets the distribution bug report url. | |
static std::string | get_distribution_code_name () |
Gets the distribution code name. | |
static std::string | get_distribution_description () |
Gets the distribution description. | |
static std::string | get_distribution_home () |
Gets the distribution home url. | |
static std::string | get_distribution_id () |
Gets the distribution identifier. | |
static std::vector< std::string > | get_distribution_like_ids () |
Gets the distribution like identifiers array. | |
static std::string | get_distribution_name () |
Gets the distribution name. | |
static void | get_distribution_version (int32_t &major, int32_t &minor, int32_t &build, int32_t &revision) |
Gets a xtd::version object that identifies the distribution. | |
static std::string | get_distribution_version_string () |
Gets the distribution version string. | |
static std::map< std::string, std::string > & | get_environment_variables (int32_t 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 std::string | get_environment_variable (const std::string &variable, int32_t target) |
Retrieves the value of an environment variable from the current process. | |
static std::string | get_know_folder_path (int32_t csidl) |
Gets the path to the system special folder that is identified by the specified enumeration. | |
static std::string | get_machine_name () |
Gets the NetBIOS name of this local computer. | |
static int32_t | get_os_platform_id () |
Gets a platform id that identifies the operating system platform. | |
static void | get_os_version (int32_t &major, int32_t &minor, int32_t &build, int32_t &revision) |
Gets a xtd::version object that identifies the operating system. | |
static uint32_t | get_processor_count () |
Gets the number of processors on the current machine. | |
static std::string | get_resources_path (bool gui_app) |
Gets the path of the resources folder. | |
static std::string | get_service_pack () |
Gets the service pack version represented by this operating_system object. | |
static size_t | get_system_page_size () |
Gets the number of bytes in the operating system's memory page. | |
static uint32_t | get_tick_count () |
Gets the number of milliseconds elapsed since the system started. | |
static bool | get_user_administrator () |
Gets a value indicating whether the current user is an administrator. | |
static std::string | get_user_domain_name () |
Gets the network domain name associated with the current user. | |
static std::string | get_user_name () |
Gets the user name of the person who is currently logged on to the operating system. | |
static bool | has_shutdown_started () |
Gets a value that indicates whether the current application domain is shutting down. | |
static bool | is_processor_arm () |
Determines whether the current processor is arm. | |
static bool | is_os_64_bit () |
Determines whether the current operating system is a 64-bit operating system. | |
static std::string | new_line () |
Gets the newline string defined for this environment. | |
static void | quick_exit (int32_t exit_code) noexcept |
Terminates this process and returns an exit code to the operating system without completely cleaning the resources.. | |
static void | set_environment_variable (const std::string &name, const std::string &value, int32_t target) |
Creates or modifies an environment variable stored in the current process. | |
static void | unset_environment_variable (const std::string &name, int32_t target) |
Deletes an environment variable stored in the current process. | |
static int64_t | working_set () |
Gets the amount of physical memory mapped to the process context. | |
|
staticprotected |
Registers the function pointed to by func to be called on quick program termination (via xtd::native::environment::quick_exit).
on_quick_exit | pointer to a function to be called on quick program termination. |
|
staticprotected |
Returns a string array containing the command-line arguments for the current process.
|
staticprotected |
Gets the desktop environment name.
|
staticprotected |
Gets the desktop theme name.
|
staticprotected |
Gets the distribution bug report url.
|
staticprotected |
Gets the distribution code name.
|
staticprotected |
Gets the distribution description.
|
staticprotected |
Gets the distribution home url.
|
staticprotected |
Gets the distribution identifier.
|
staticprotected |
Gets the distribution like identifiers array.
|
staticprotected |
Gets the distribution name.
|
staticprotected |
Gets a xtd::version object that identifies the distribution.
major | return the major version. |
minor | return the minor version, build, and revision numbers for the distribution. |
build | return the build. |
revision | return the revision numbers for the distribution. |
|
staticprotected |
Gets the distribution version string.
|
staticprotected |
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 | The environment variable target (see environment_variable_target.h file). |
|
staticprotected |
Retrieves the value of an environment variable from the current process.
variable | The name of the environment variable. |
|
staticprotected |
Gets the path to the system special folder that is identified by the specified enumeration.
csidl | System special folder identifier (see constant_special_item_id_list.h file). |
|
staticprotected |
Gets the NetBIOS name of this local computer.
|
staticprotected |
Gets a platform id that identifies the operating system platform.
|
staticprotected |
Gets a xtd::version object that identifies the operating system.
major | return the major version. |
minor | return the minor version, build, and revision numbers for the operating system. |
build | return the build. |
revision | return the revision numbers for the operating system. |
|
staticprotected |
Gets the number of processors on the current machine.
|
staticprotected |
Gets the path of the resources folder.
|
staticprotected |
Gets the service pack version represented by this operating_system object.
|
staticprotected |
Gets the number of bytes in the operating system's memory page.
|
staticprotected |
Gets the number of milliseconds elapsed since the system started.
|
staticprotected |
Gets a value indicating whether the current user is an administrator.
|
staticprotected |
Gets the network domain name associated with the current user.
|
staticprotected |
Gets the user name of the person who is currently logged on to the operating system.
|
staticprotected |
Gets a value that indicates whether the current application domain is shutting down.
|
staticprotected |
Determines whether the current processor is arm.
|
staticprotected |
Determines whether the current operating system is a 64-bit operating system.
|
staticprotected |
Gets the newline string defined for this environment.
|
staticprotectednoexcept |
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. |
|
staticprotected |
Creates or modifies an environment variable stored in the current process.
variable | The name of an environment variable. |
value | A value to assign to variable. |
|
staticprotected |
Deletes an environment variable stored in the current process.
variable | The name of an environment variable. |
|
staticprotected |
Gets the amount of physical memory mapped to the process context.