]>
Commit | Line | Data |
---|---|---|
94b17fa1 | 1 | /** @file\r |
2 | EFI Shell protocol as defined in the UEFI Shell 2.0 specification.\r | |
94b17fa1 | 3 | \r |
51a09860 | 4 | Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
94b17fa1 | 6 | \r |
7 | **/\r | |
8 | \r | |
51a09860 RN |
9 | #ifndef __EFI_SHELL_PARAMETERS_PROTOCOL_H__\r |
10 | #define __EFI_SHELL_PARAMETERS_PROTOCOL_H__\r | |
94b17fa1 | 11 | \r |
51a09860 | 12 | #include <Protocol/Shell.h>\r |
7d271d7b | 13 | \r |
94b17fa1 | 14 | #define EFI_SHELL_PARAMETERS_PROTOCOL_GUID \\r |
15 | { \\r | |
16 | 0x752f3136, 0x4e16, 0x4fdc, { 0xa2, 0x2a, 0xe5, 0xf4, 0x68, 0x12, 0xf4, 0xca } \\r | |
17 | }\r | |
18 | \r | |
19 | typedef struct _EFI_SHELL_PARAMETERS_PROTOCOL {\r | |
36a9d672 | 20 | ///\r |
1e6e84c7 | 21 | /// Points to an Argc-element array of points to NULL-terminated strings containing\r |
36a9d672 | 22 | /// the command-line parameters. The first entry in the array is always the full file\r |
23 | /// path of the executable. Any quotation marks that were used to preserve\r | |
24 | /// whitespace have been removed.\r | |
25 | ///\r | |
94b17fa1 | 26 | CHAR16 **Argv;\r |
ef34de25 | 27 | \r |
36a9d672 | 28 | ///\r |
29 | /// The number of elements in the Argv array.\r | |
1e6e84c7 | 30 | ///\r |
94b17fa1 | 31 | UINTN Argc;\r |
ef34de25 | 32 | \r |
36a9d672 | 33 | ///\r |
34 | /// The file handle for the standard input for this executable. This may be different\r | |
a405b86d | 35 | /// from the ConInHandle in EFI_SYSTEM_TABLE.\r |
36a9d672 | 36 | ///\r |
a405b86d | 37 | SHELL_FILE_HANDLE StdIn;\r |
ef34de25 | 38 | \r |
36a9d672 | 39 | ///\r |
40 | /// The file handle for the standard output for this executable. This may be different\r | |
a405b86d | 41 | /// from the ConOutHandle in EFI_SYSTEM_TABLE.\r |
36a9d672 | 42 | ///\r |
a405b86d | 43 | SHELL_FILE_HANDLE StdOut;\r |
ef34de25 | 44 | \r |
36a9d672 | 45 | ///\r |
46 | /// The file handle for the standard error output for this executable. This may be\r | |
a405b86d | 47 | /// different from the StdErrHandle in EFI_SYSTEM_TABLE.\r |
36a9d672 | 48 | ///\r |
a405b86d | 49 | SHELL_FILE_HANDLE StdErr;\r |
94b17fa1 | 50 | } EFI_SHELL_PARAMETERS_PROTOCOL;\r |
51 | \r | |
52 | extern EFI_GUID gEfiShellParametersProtocolGuid;\r | |
53 | \r | |
54 | #endif\r |