Specifications

Version 2.0
45
EFI_SHELL_PROTOCOL.SetAlias()
Summary
Changes a shell command alias.
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_SHELL_SET_ALIAS)(
IN CONST CHAR16 *Command,
IN CONST CHAR16 *Alias,
IN BOOLEAN Replace
);
Parameters
Command
Points to the null-terminated shell command or existing alias.
Alias
Points to the null-terminated alias for the shell command. If this is NULL, and
Command refers to an alias, that alias will be deleted.
Replace
If TRUE and the alias already exists, then the existing alias will be replaced. If
FALSE and the alias already exists, then the existing alias is unchanged and
EFI_ACCESS_DENIED is returned.
Description
This function creates an alias for a shell command.
Return Value
EFI_SUCCESS Alias created or deleted successfully.
EFI_ACCESS_DENIED The alias is a built-in alias or already existed and Replace was set to
FALSE.