Hp UEFI Manual do Utilizador Página 73

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 81
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 72
if (UefiShellProtocol != NULL) {
//
// Ejemplo que permite leer las variables de versión principal y secundaria de UEFI Shell
//
Print (L"UEFI Shell Revision: %d.%d\n", UefiShellProtocol->MajorVersion, UefiShellProtocol->MinorVersion);
//
// Ejemplo que permite obtener una lista de todas las variables de entorno
//
ConstEnvNameList = UefiShellProtocol->GetEnv (NULL);
if (ConstEnvNameList == NULL) {
return EFI_SUCCESS;
}
Print (L"\n");
Print (L"ENVIRONMENT VARIABLES:\n");
Print (L"\n");
//
// Ejemplo que permite obtener y mostrar todas las variables de entorno
//
while (*ConstEnvNameList != CHAR_NULL){
Value = UefiShellProtocol->GetEnv (ConstEnvNameList);
Print (L"%8s = %s\n", ConstEnvNameList, Value);
ConstEnvNameList += StrLen (ConstEnvNameList)+1;
}
}
return EFI_SUCCESS;
}
Ejemplos de secuencias de comandos de Shell 73
Vista de página 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 79 80 81

Comentários a estes Manuais

Sem comentários