Specifications

52 Version 2.0
2.3 EFI_SHELL_PARAMETERS_PROTOCOL
EFI_SHELL_PARAMETERS_PROTOCOL
Summary
Shell application’s arguments.
GUID
#define EFI_SHELL_PARAMETERS_PROTOCOL_GUID \
{ 0x752f3136, 0x4e16, 0x4fdc, \
{ 0xa2, 0x2a, 0xe5, 0xf4, 0x68, 0x12, 0xf4, 0xca } };
Prototype
typedef struct _EFI_SHELL_PARAMETERS_PROTOCOL {
CHAR16 **Argv;
UINTN Argc;
EFI_FILE_HANDLE StdIn;
EFI_FILE_HANDLE StdOut;
EFI_FILE_HANDLE StdErr;
} EFI_SHELL_PARAMETERS_PROTOCOL;
Parameters
Argv
Points to an Argc-element array of points to null-terminated strings containing
the command-line parameters. The first entry in the array is always the full file
path of the executable. Any quotation marks that were used to preserve
whitespace have been removed.
Argc
The number of elements in the Argv array.
StdIn
The file handle for the standard input for this executable. This may be different
from the ConInHandle in the EFI_SYSTEM_TABLE.
StdOut
The file handle for the standard output for this executable. This may be different
from the ConOutHandle in the EFI_SYSTEM_TABLE.
StdErr
The file handle for the standard error output for this executable. This may be
different from the StdErrHandle in the EFI_SYSTEM_TABLE.
Description
An instance of this protocol is installed on each shell application’s image handle prior
to calling StartImage(). It describes all of the command-line parameters passed on
the command line, as well as the standard file handles for standard input, output and
error output.