I have a uefi shell app and a uefi module, providing similar functionality, I am trying to merge them into a single entity that can be executed either as a module from Boot Menu or from uefi shell. Is it possible to create an efi app that can be executed like this ?
The entry point for module is
ModMain (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
)
while for uefi shell app. it's,
MyAppMain (
IN UINTN Argc,
IN CHAR16 **Argv
)
Can I get the ImageHandle of an efi image implicitly (something like This pointer in C++ objects) ?
Thanks