Hp UEFI Manuale Utente Pagina 73

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 81
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 79 80 81

Commenti su questo manuale

Nessun commento