TianoCore EDK2 master
|
#include <Base.h>
#include <Protocol/SimpleFileSystem.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/EfiShellInterface.h>
#include <Protocol/ShellParameters.h>
#include <Library/ShellCEntryLib.h>
#include <Library/DebugLib.h>
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | ShellCEntryLib (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Provides application point extension for "C" style main function
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UefiShellCEntryLib.c.
EFI_STATUS EFIAPI ShellCEntryLib | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
UEFI entry point for an application that will in turn call the ShellAppMain function which has parameters similar to a standard C main function.
An application that uses UefiShellCEntryLib must have a ShellAppMain function as prototyped in Include/Library/ShellCEntryLib.h.
Note that the Shell uses POSITIVE integers for error values, while UEFI uses NEGATIVE values. If the application is to be used within a script, it needs to return one of the SHELL_STATUS values defined in Protocol/Shell.h.
ImageHandle | The image handle of the UEFI Application. |
SystemTable | A pointer to the EFI System Table. |
EFI_SUCCESS | The application exited normally. |
Other | An error occurred. |
Definition at line 40 of file UefiShellCEntryLib.c.