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.
- Parameters
-
target | One of the environment_variable_target values. |
- Returns
- std::map A dictionary that contains all environment variable names and their values from the source specified by the target parameter; otherwise, an empty dictionary if no environment variables are found.
- Exceptions
-
std::invalid_argument | target is not a valid environment_variable_target value. |
- Todo:
- Add xtd::registry and uncomment lines.