Skip to content

Getting Started Writing MyHelloWorld.c

Jordan Justen edited this page Nov 10, 2014 · 2 revisions
Clone this wiki locally

Example MyHelloWorld.c file:

/** @file
  Brief Description of UEFI MyHelloWorld
  Detailed Description of UEFI MyHelloWorld
  Copyright for UEFI MyHelloWorld
  License for UEFI MyHelloWorld

#include <Uefi.h>
#include <Library/UefiApplicationEntryPoint.h>
#include <Library/UefiLib.h>

  as the real entry point for the application.

  @param[in] ImageHandle    The firmware allocated handle for the EFI image.  
  @param[in] SystemTable    A pointer to the EFI System Table.
  @retval EFI_SUCCESS       The entry point is executed successfully.
  @retval other             Some error occurs when executing this entry point.

UefiMain (
  IN EFI_HANDLE        ImageHandle,
  Print(L"Hello World \n"); 
  return EFI_SUCCESS;