#include <EnvironmentVariables.h>
Public Types | |
| enum | ESettingMethod { etCurrentProcess, etPersistentlyCurrentUser, etPersistentlyLocalMachine } |
Enum for the setting method. More... | |
Static Public Member Functions | |
| static bool | deleteEnvironmentVariable (const IString &strName, ESettingMethod eMethod) |
| Deletes an environment variable. | |
| static TString | getEnvironmentVariable (const IString &strName) |
| Get an environment variable. | |
| static bool | setEnvironmentVariable (const IString &strName, const IString &strValue, ESettingMethod eMethod) |
| Set an environment variable. | |
Static class for all operations with OS environment variables.
| bool zeus::TEnvironmentVariables::deleteEnvironmentVariable | ( | const IString & | strName, |
| ESettingMethod | eMethod | ||
| ) | [static] |
Deletes an environment variable.
Deletes an environment variable.
| strName | [IN]: Name of the variable. |
| eMethod | [IN]: Setting method. |
| true,: | variable deleted |
| false,: | could not delete the variable |
Get an environment variable.
Get an environment variable.
| strName | [IN]: Name of the variable. |
| bool zeus::TEnvironmentVariables::setEnvironmentVariable | ( | const IString & | strName, |
| const IString & | strValue, | ||
| ESettingMethod | eMethod | ||
| ) | [static] |
Set an environment variable.
Set an environment variable.
| strName | [IN]: Name of the variable. |
| strValue | [IN]: Wert of the variable. |
| eMethod | [IN]: Setting method. |
| true,: | Variable set |
| false,: | could not set the variable |