]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | EFI Shell protocol as defined in the UEFI Shell 2.0 specification.\r | |
3 | \r | |
4 | Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | #ifndef __EFI_SHELL_PARAMETERS_PROTOCOL_H__\r | |
10 | #define __EFI_SHELL_PARAMETERS_PROTOCOL_H__\r | |
11 | \r | |
12 | #include <Protocol/Shell.h>\r | |
13 | \r | |
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 | |
20 | ///\r | |
21 | /// Points to an Argc-element array of points to NULL-terminated strings containing\r | |
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 | |
26 | CHAR16 **Argv;\r | |
27 | \r | |
28 | ///\r | |
29 | /// The number of elements in the Argv array.\r | |
30 | ///\r | |
31 | UINTN Argc;\r | |
32 | \r | |
33 | ///\r | |
34 | /// The file handle for the standard input for this executable. This may be different\r | |
35 | /// from the ConInHandle in EFI_SYSTEM_TABLE.\r | |
36 | ///\r | |
37 | SHELL_FILE_HANDLE StdIn;\r | |
38 | \r | |
39 | ///\r | |
40 | /// The file handle for the standard output for this executable. This may be different\r | |
41 | /// from the ConOutHandle in EFI_SYSTEM_TABLE.\r | |
42 | ///\r | |
43 | SHELL_FILE_HANDLE StdOut;\r | |
44 | \r | |
45 | ///\r | |
46 | /// The file handle for the standard error output for this executable. This may be\r | |
47 | /// different from the StdErrHandle in EFI_SYSTEM_TABLE.\r | |
48 | ///\r | |
49 | SHELL_FILE_HANDLE StdErr;\r | |
50 | } EFI_SHELL_PARAMETERS_PROTOCOL;\r | |
51 | \r | |
52 | extern EFI_GUID gEfiShellParametersProtocolGuid;\r | |
53 | \r | |
54 | #endif\r |