/** Calls module entrypoints. This function calls all the entrypoints that are part of this UEFI module. For modules being built with this library, we assume that only one entry point exists, and that it is called UefiMain. @param ImageHandle The image handle of the UEFI Application. @param SystemTable A pointer to the EFI System Table. @retval EFI_SUCCESS Operation was completed sucessfully. **/ EFI_STATUS EFIAPI ProcessModuleEntryPointList ( IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable ) { return UefiMain (ImageHandle, SystemTable); }
int main(int argc, char** argv) { if(argc == 2){ filename = argv[1]; printf("The filename %s\n", filename); }else{ filename = NULL; } UefiMain(gImageHandle, gST); return 0; }
INTN EFIAPI ShellAppMain ( IN UINTN Argc, IN CHAR16 **Argv ) { char FilenameA[32]; if(Argc == 2){ UnicodeStrToAsciiStr(FilenameA, Argv[1]); filename = FilenameA; } else filename = "test.wav"; UefiMain(gImageHandle, gST); }