**/\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
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
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