/* this function gets the value of the environment variable set by the ShellSetEnvironmentVariable function */
CONST CHAR16* EFIAPI ShellGetEnvironmentVariable(IN CONST CHAR16 *EnvKey)
/* this function gets the value of the environment variable set by the ShellSetEnvironmentVariable function */
CONST CHAR16* EFIAPI ShellGetEnvironmentVariable(IN CONST CHAR16 *EnvKey)
{
  if (gEfiShellProtocol != NULL) {
    return (gEfiShellProtocol->GetEnv (EnvKey));
  }
  if (mEfiShellEnvironment2 != NULL) {
    return (mEfiShellEnvironment2->GetEnv ((CHAR16 *)EnvKey));
  }
  return NULL;
}