Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
985 B

  1. /*++
  2. Copyright (c) 1998 Intel Corporation
  3. Module Name:
  4. hello.c
  5. Abstract:
  6. Author:
  7. Revision History
  8. --*/
  9. #include "efi.h"
  10. EFI_STATUS
  11. InitializeHelloApplication (
  12. IN EFI_HANDLE ImageHandle,
  13. IN EFI_SYSTEM_TABLE *SystemTable
  14. )
  15. {
  16. UINTN Index;
  17. /*
  18. * Send a message to the ConsoleOut device.
  19. */
  20. SystemTable->ConOut->OutputString(SystemTable->ConOut,
  21. L"Hello application started\n\r");
  22. /*
  23. * Wait for the user to press a key.
  24. */
  25. SystemTable->ConOut->OutputString(SystemTable->ConOut,
  26. L"\n\r\n\r\n\rHit any key to exit this image\n\r");
  27. SystemTable->BootServices->WaitForEvent (1, &(SystemTable->ConIn->WaitForKey), &Index);
  28. SystemTable->ConOut->OutputString(SystemTable->ConOut,L"\n\r\n\r");
  29. /*
  30. * Exit the application.
  31. */
  32. return EFI_SUCCESS;
  33. }