t5.c 370 B

12345678910111213
  1. #include <efi.h>
  2. #include <efilib.h>
  3. EFI_STATUS
  4. efi_main (EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
  5. {
  6. InitializeLib(image, systab);
  7. Print(L"HelloLib application started\n");
  8. Print(L"\n\n\nHit any key to exit this image\n");
  9. WaitForSingleEvent(ST->ConIn->WaitForKey, 0);
  10. uefi_call_wrapper(ST->ConOut->OutputString, 2, ST->ConOut, L"\n\n");
  11. return EFI_SUCCESS;
  12. }