source: bootcd/isolinux/syslinux-6.03/gnu-efi/gnu-efi-3.0/apps/t7.c @ 26ffad7

Last change on this file since 26ffad7 was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 619 bytes
Line 
1#include <efi.h>
2#include <efilib.h>
3
4EFI_STATUS
5efi_main (EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
6{
7        EFI_INPUT_KEY efi_input_key;
8        EFI_STATUS efi_status;
9
10        InitializeLib(image, systab);
11
12        Print(L"HelloLib application started\n");
13
14        Print(L"\n\n\nHit any key to exit this image\n");
15        WaitForSingleEvent(ST->ConIn->WaitForKey, 0);
16
17        uefi_call_wrapper(ST->ConOut->OutputString, 2, ST->ConOut, L"\n\n");
18
19        efi_status = uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &efi_input_key);
20
21        Print(L"ScanCode: %xh  UnicodeChar: %xh\n",
22                efi_input_key.ScanCode, efi_input_key.UnicodeChar);
23
24        return EFI_SUCCESS;
25}
Note: See TracBrowser for help on using the repository browser.