diff options
author | Konstantin Aladyshev <aladyshev22@gmail.com> | 2022-03-14 12:08:51 +0300 |
---|---|---|
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | 2022-03-14 12:08:51 +0300 |
commit | e31d9c5bcd8f14160764e960e385bde763b9c811 (patch) | |
tree | cb4ad6d10b733322232066fe5a0855e53a949cb9 /Lessons/Lesson_Checkbox/UefiLessonsPkg/DisplayHIIByGuid/DisplayHIIByGuid.c | |
parent | 033d0a38bb5afde4ed5c5242e4f35e28ce086dd1 (diff) | |
download | UEFI-Lessons-e31d9c5bcd8f14160764e960e385bde763b9c811.tar.gz UEFI-Lessons-e31d9c5bcd8f14160764e960e385bde763b9c811.tar.bz2 UEFI-Lessons-e31d9c5bcd8f14160764e960e385bde763b9c811.zip |
Rename Lesson_Checkbox to Lesson_63
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
Diffstat (limited to 'Lessons/Lesson_Checkbox/UefiLessonsPkg/DisplayHIIByGuid/DisplayHIIByGuid.c')
-rw-r--r-- | Lessons/Lesson_Checkbox/UefiLessonsPkg/DisplayHIIByGuid/DisplayHIIByGuid.c | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/Lessons/Lesson_Checkbox/UefiLessonsPkg/DisplayHIIByGuid/DisplayHIIByGuid.c b/Lessons/Lesson_Checkbox/UefiLessonsPkg/DisplayHIIByGuid/DisplayHIIByGuid.c deleted file mode 100644 index 7c3c8fa..0000000 --- a/Lessons/Lesson_Checkbox/UefiLessonsPkg/DisplayHIIByGuid/DisplayHIIByGuid.c +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2021, Konstantin Aladyshev <aladyshev22@gmail.com> - * - * SPDX-License-Identifier: MIT - */ - -#include <Library/UefiBootServicesTableLib.h> -#include <Library/UefiLib.h> - -#include <Library/MemoryAllocationLib.h> -#include <Protocol/FormBrowser2.h> -#include <Library/HiiLib.h> - -INTN -EFIAPI -ShellAppMain ( - IN UINTN Argc, - IN CHAR16 **Argv - ) -{ - if (Argc <=1) { - Print(L"Usage:\n"); - Print(L" DisplayHIIByGuid <GUID> [<GUID> [<GUID> [...]]]\n"); - return EFI_INVALID_PARAMETER; - } - - GUID* Guids = (GUID*)AllocatePool(sizeof(GUID)*(Argc-1)); - - for (UINTN i=1; i<Argc; i++) { - RETURN_STATUS Status = StrToGuid(Argv[i], &Guids[i-1]); - if (Status != RETURN_SUCCESS) { - Print(L"Error! Can't convert one of the GUIDs to string\n"); - FreePool(Guids); - return EFI_INVALID_PARAMETER; - } - Print(L"%g\n", Guids[i-1]); - } - - - EFI_HII_HANDLE* Handle = HiiGetHiiHandles(&Guids[0]); - - UINTN HandleCount=0; - while (*Handle != NULL) { - Handle++; - HandleCount++; - Print(L"Total HandleCount=%d\n", HandleCount); - } - Print(L"Total HandleCount=%d\n", HandleCount); - -/* - return EFI_SUCCESS; - - EFI_STATUS Status; - EFI_FORM_BROWSER2_PROTOCOL* FormBrowser2; - Status = gBS->LocateProtocol(&gEfiFormBrowser2ProtocolGuid, NULL, (VOID**)&FormBrowser2); - if (EFI_ERROR(Status)) { - return Status; - } - - Status = FormBrowser2->SendForm ( - FormBrowser2, - Handle, - 1, - NULL, - 0, - NULL, - NULL - ); - -*/ - FreePool(Handle); - FreePool(Guids); - - return EFI_SUCCESS; -} |