MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c File Reference


Functions

EFI_STATUS EFIAPI _ModuleEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
VOID EFIAPI Exit (IN EFI_STATUS Status)
EFI_STATUS EFIAPI EfiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)

Detailed Description

Entry point library instance to a UEFI application.

Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.


Function Documentation

EFI_STATUS EFIAPI _ModuleEntryPoint ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Entry point to UEFI Application.

This function is the entry point for a UEFI Application. This function must call ProcessLibraryConstructorList(), ProcessModuleEntryPointList(), and ProcessLibraryDestructorList(). The return value from ProcessModuleEntryPointList() is returned. If _gUefiDriverRevision is not zero and SystemTable->Hdr.Revision is less than _gUefiDriverRevison, then return EFI_INCOMPATIBLE_VERSION.

Parameters:
ImageHandle The image handle of the UEFI Application.
SystemTable A pointer to the EFI System Table.
Return values:
EFI_SUCCESS The UEFI Application exited normally.
EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than SystemTable->Hdr.Revision.
Other Return value from ProcessModuleEntryPointList().

References _gUefiDriverRevision, EFI_INCOMPATIBLE_VERSION, ProcessLibraryConstructorList(), ProcessLibraryDestructorList(), and ProcessModuleEntryPointList().

EFI_STATUS EFIAPI EfiMain ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Required by the EBC compiler and identical in functionality to _ModuleEntryPoint().

Parameters:
ImageHandle The image handle of the UEFI Application.
SystemTable A pointer to the EFI System Table.
Return values:
EFI_SUCCESS The UEFI Application exited normally.
EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than SystemTable->Hdr.Revision.
Other Return value from ProcessModuleEntryPointList().

References _ModuleEntryPoint().

VOID EFIAPI Exit ( IN EFI_STATUS  Status  ) 

Invokes the library destructors for all dependent libraries and terminates the UEFI Application.

This function calls ProcessLibraryDestructorList() and the EFI Boot Service Exit() with a status specified by Status.

Parameters:
Status Status returned by the application that is exiting.

References EFI_BOOT_SERVICES::Exit, gBS, gImageHandle, gST, NULL, and ProcessLibraryDestructorList().


Generated on Thu Sep 24 23:14:24 2015 for MdePkg[ALL] by  doxygen 1.5.7.1