]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/ShellLibTestApp/sa3.c
updating comments mostly. also added some new lib functions.
[mirror_edk2.git] / ShellPkg / Application / ShellLibTestApp / sa3.c
index 0e254d0fd4a04fe36095d60c119e58650060e7ec..bc7986a97ae85a3a8e32ab3bfaed6ed7d656abb8 100644 (file)
 **/\r
 \r
 #include <Uefi.h>\r
+#include <Guid/FileInfo.h>\r
+#include <Protocol/SimpleFileSystem.h>\r
+#include <Protocol/LoadedImage.h>\r
+#include <Protocol/EfiShellInterface.h>\r
+#include <Protocol/EfiShellEnvironment2.h>\r
+#include <Protocol/EfiShell.h>\r
+#include <Protocol/EfiShellParameters.h>\r
 #include <Library/UefiApplicationEntryPoint.h>\r
 #include <Library/UefiLib.h>\r
 #include <Library/ShellLib.h>\r
@@ -48,15 +55,15 @@ UefiMain (
   EFI_FILE_HANDLE     FileHandle;\r
   EFI_STATUS          Status;\r
   CHAR16              FileName[100];\r
-//  UINTN               BufferSize;\r
-//  UINT64              Position;\r
-//  UINT8               Buffer[200];\r
+  UINTN               BufferSize;\r
+  UINT64              Position;\r
+  UINT8               Buffer[200];\r
   EFI_FILE_INFO       *pFileInfo;\r
   UINT64              Size;\r
   BOOLEAN             NoFile;\r
   EFI_SHELL_FILE_INFO *pShellFileInfo;\r
   LIST_ENTRY          *List;\r
-  CONST CHAR16              *Tester;\r
+  // CONST CHAR16              *Tester;\r
   \r
   FileHandle = NULL;\r
   StrCpy(FileName, L"testfile.txt");\r
@@ -76,8 +83,8 @@ UefiMain (
     ASSERT(ShellCommandLineGetFlag(List, L"/Param1") != FALSE);\r
     ASSERT(StrCmp(ShellCommandLineGetValue(List, L"/Param2"), L"Val1")==0);\r
     ASSERT(StrCmp(ShellCommandLineGetRawValue(List, 0), L"SimpleApplication.efi")==0);\r
-    Tester = ShellCommandLineGetValue(List, L"/Param3");\r
-    Tester = ShellCommandLineGetValue(List, L"/Param4");\r
+    // Tester = ShellCommandLineGetValue(List, L"/Param3");\r
+    // Tester = ShellCommandLineGetValue(List, L"/Param4");\r
 \r
     ShellCommandLineFreeVarList(List);\r
   } else {\r