aboutsummaryrefslogtreecommitdiffstats
path: root/Lesson_14/UefiLessonsPkg/SimpleShellApp/SimpleShellApp.c
blob: b13aa6c69c3636aebb2889f87b8603967ccffd49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>

INTN EFIAPI ShellAppMain(IN UINTN Argc, IN CHAR16 **Argv)
{
//  SystemTable->ConOut->OutputString(SystemTable->ConOut, L"Hello World!\n");
  gST->ConOut->OutputString(gST->ConOut, L"Hello again!\n");
  Print(L"Bye!\n");

  for (UINTN i=Argc; i>0; i--) {
    Print(L"Arg[%d]=%s\n", Argc-i, Argv[Argc-i]);
  }
  return 0;
}