From bf1ec7c34e789a82b362adede1c96049c32d3d27 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Mon, 8 Nov 2021 14:38:13 +0300 Subject: Add lesson 51 Signed-off-by: Konstantin Aladyshev --- UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c | 14 ++++++++++++ UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf | 19 ++++++++++++++++ UefiLessonsPkg/HIIStringsMan/Strings.uni | 30 ++++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c create mode 100644 UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf create mode 100644 UefiLessonsPkg/HIIStringsMan/Strings.uni (limited to 'UefiLessonsPkg/HIIStringsMan') diff --git a/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c b/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c new file mode 100644 index 0000000..569f2d7 --- /dev/null +++ b/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.c @@ -0,0 +1,14 @@ +#include +#include + +GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN(STR_HELP); + +EFI_STATUS +EFIAPI +UefiMain ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + return EFI_SUCCESS; +} diff --git a/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf b/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf new file mode 100644 index 0000000..bf2afd2 --- /dev/null +++ b/UefiLessonsPkg/HIIStringsMan/HIIStringsMan.inf @@ -0,0 +1,19 @@ +[Defines] + INF_VERSION = 1.25 + BASE_NAME = HIIStringsMan + FILE_GUID = 55fd4de5-0f19-4a23-a001-72bef56f8966 + MODULE_TYPE = UEFI_APPLICATION + VERSION_STRING = 1.0 + ENTRY_POINT = UefiMain + UEFI_HII_RESOURCE_SECTION = TRUE + +[Sources] + HIIStringsMan.c + Strings.uni + +[Packages] + MdePkg/MdePkg.dec + +[LibraryClasses] + UefiApplicationEntryPoint + UefiLib diff --git a/UefiLessonsPkg/HIIStringsMan/Strings.uni b/UefiLessonsPkg/HIIStringsMan/Strings.uni new file mode 100644 index 0000000..b6e0635 --- /dev/null +++ b/UefiLessonsPkg/HIIStringsMan/Strings.uni @@ -0,0 +1,30 @@ +#langdef en-US "English" + +#string STR_HELP #language en-US "" +".TH HIIStringsMan 0 "Simple application with a manual inside."\r\n" +".SH NAME\r\n" +"HIIStringsMan application.\r\n" +".SH SYNOPSIS\r\n" +"This is the synopsis section.\r\n" +".SH DESCRIPTION\r\n" +"This is the description section.\r\n" +".SH OPTIONS\r\n" +"This is the options section.\r\n" +".SH RETURN VALUES\r\n" +"This is the return values section.\r\n" +".SH ENVIRONMENT VARIABLES\r\n" +"This is the section for used environment variables\r\n" +".SH FILES\r\n" +"This is the section for files associated with the subject.\r\n" +".SH EXAMPLES\r\n" +"This is the section for examples and suggestions.\r\n" +".SH ERRORS\r\n" +"This is the section for errors reported by the command.\r\n" +".SH STANDARDS\r\n" +"This is the section for conformance to applicable standards.\r\n" +".SH BUGS\r\n" +"This is the section for errors and caveats.\r\n" +".SH CATEGORY\r\n" +"This is the section for categories.\r\n" +".SH CUSTOMSECTION\r\n" +"This is an example of a custom section.\r\n" -- cgit v1.2.3-18-g5258