28 if (TheString ==
NULL) {
29 return (EFI_INVALID_PARAMETER);
34 SHELL_FREE_NON_NULL (TheString);
84 if (EFI_ERROR (Status)) {
85 if ((Status == EFI_VOLUME_CORRUPTED) && (ProblemParam !=
NULL)) {
104 if (Param1 !=
NULL) {
109 if (EFI_ERROR (Status) || (Param1 ==
NULL) || (TheHandle ==
NULL)) {
113 ASSERT (TheHandle !=
NULL);
124 Status =
gBS->UnloadImage (TheHandle);
128 SHELL_FREE_NON_NULL (Resp);
134 if (Status == EFI_SECURITY_VIOLATION) {
136 }
else if (Status == EFI_INVALID_PARAMETER) {
138 }
else if (EFI_ERROR (Status)) {
143 if (Package !=
NULL) {
147 return (ShellStatus);
VOID EFIAPI FreePool(IN VOID *Buffer)
CHAR16 *EFIAPI GetProtocolInformationDump(IN CONST EFI_HANDLE TheHandle, IN CONST EFI_GUID *Guid, IN CONST BOOLEAN Verbose)
EFI_HANDLE EFIAPI ConvertHandleIndexToHandle(IN CONST UINTN TheIndex)
#define ASSERT_EFI_ERROR(StatusParameter)
@ SHELL_SECURITY_VIOLATION
@ SHELL_INVALID_PARAMETER
#define ShellCommandLineParse(CheckList, CheckPackage, ProblemParam, AutoPageBreak)
Make it easy to upgrade from older versions of the shell library.
EFI_STATUS EFIAPI ShellPrintHiiEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR8 *Language OPTIONAL, IN CONST EFI_STRING_ID HiiFormatStringId, IN CONST EFI_HII_HANDLE HiiFormatHandle,...)
BOOLEAN EFIAPI ShellCommandLineGetFlag(IN CONST LIST_ENTRY *CONST CheckPackage, IN CONST CHAR16 *CONST KeyString)
@ TypeFlag
A flag that is present or not present only (IE "-a").
EFI_STATUS EFIAPI ShellPromptForResponse(IN SHELL_PROMPT_REQUEST_TYPE Type, IN CHAR16 *Prompt OPTIONAL, IN OUT VOID **Response OPTIONAL)
VOID EFIAPI ShellCommandLineFreeVarList(IN LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellInitialize(VOID)
EFI_STATUS EFIAPI ShellPrintEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR16 *Format,...)
CONST CHAR16 *EFIAPI ShellCommandLineGetRawValue(IN CONST LIST_ENTRY *CONST CheckPackage, IN UINTN Position)
UINTN EFIAPI ShellCommandLineGetCount(IN CONST LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellConvertStringToUint64(IN CONST CHAR16 *String, OUT UINT64 *Value, IN CONST BOOLEAN ForceHex, IN CONST BOOLEAN StopAtSpace)
SHELL_STATUS EFIAPI ShellCommandRunUnload(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS DumpLoadedImageProtocolInfo(IN EFI_HANDLE TheHandle)