From 142741a87102ecac4e9d0f801ec95cf27708a694 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Mon, 14 Mar 2022 12:35:38 +0300 Subject: Add sources for the HII Checkbox lesson Signed-off-by: Konstantin Aladyshev --- UefiLessonsPkg/HIIFormCheckbox/Form.vfr | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 UefiLessonsPkg/HIIFormCheckbox/Form.vfr (limited to 'UefiLessonsPkg/HIIFormCheckbox/Form.vfr') diff --git a/UefiLessonsPkg/HIIFormCheckbox/Form.vfr b/UefiLessonsPkg/HIIFormCheckbox/Form.vfr new file mode 100644 index 0000000..01759f7 --- /dev/null +++ b/UefiLessonsPkg/HIIFormCheckbox/Form.vfr @@ -0,0 +1,25 @@ +#include + +#define FORMSET_GUID {0xef2acc91, 0x7b50, 0x4ab9, {0xab, 0x67, 0x2b, 0x4, 0xf8, 0xbc, 0x13, 0x5e}} + +formset + guid = FORMSET_GUID, + title = STRING_TOKEN(FORMSET_TITLE), + help = STRING_TOKEN(FORMSET_HELP), + + efivarstore UINT8, + attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE, + name = CheckboxValue, + guid = FORMSET_GUID; + + form + formid = 1, + title = STRING_TOKEN(FORMID1_TITLE); + + checkbox + varid = CheckboxValue, + prompt = STRING_TOKEN(CHECKBOX_PROMPT), + help = STRING_TOKEN(CHECKBOX_HELP), + endcheckbox; + endform; +endformset; -- cgit v1.2.3-18-g5258