#include #include #include #include #include INTN EFIAPI ShellAppMain ( IN UINTN Argc, IN CHAR16 **Argv ) { if (Argc <=1) { Print(L"Usage:\n"); Print(L" DisplayHIIByGuid [ [ [...]]]\n"); return EFI_INVALID_PARAMETER; } GUID* Guids = (GUID*)AllocatePool(sizeof(GUID)*(Argc-1)); for (UINTN i=1; iLocateProtocol(&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; }